From 9a871eba413d41b0d16e7bd69d891cf39ad2c10a Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Wed, 6 Sep 2023 18:33:01 -0400 Subject: [PATCH] fix wrong variable used to populate MI data for encryption for network packets; --- src/p25/dfsi/LC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p25/dfsi/LC.cpp b/src/p25/dfsi/LC.cpp index 048fdd6a..a52ba7b3 100644 --- a/src/p25/dfsi/LC.cpp +++ b/src/p25/dfsi/LC.cpp @@ -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