Skip to content

Commit

Permalink
fix wrong variable used to populate MI data for encryption for networ…
Browse files Browse the repository at this point in the history
…k packets;
  • Loading branch information
gatekeep committed Sep 6, 2023
1 parent 5c371c9 commit 9a871eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/p25/dfsi/LC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ void LC::encodeLDU2(uint8_t* data, const uint8_t* imbe)
::memset(rs, 0x00U, P25_LDU_LC_LENGTH_BYTES);

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

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

0 comments on commit 9a871eb

Please sign in to comment.