Skip to content

Commit 9a871eb

Browse files
committed
fix wrong variable used to populate MI data for encryption for network packets;
1 parent 5c371c9 commit 9a871eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/p25/dfsi/LC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ void LC::encodeLDU2(uint8_t* data, const uint8_t* imbe)
524524
::memset(rs, 0x00U, P25_LDU_LC_LENGTH_BYTES);
525525

526526
for (uint32_t i = 0; i < P25_MI_LENGTH_BYTES; i++)
527-
rs[i] = m_mi[i]; // Message Indicator
527+
rs[i] = mi[i]; // Message Indicator
528528

529529
rs[9U] = m_control->getAlgId(); // Algorithm ID
530530
rs[10U] = (m_control->getKId() >> 8) & 0xFFU; // Key ID

0 commit comments

Comments
 (0)