Fix length overflow for P25 LDU packets.

This commit is contained in:
Jonathan Naylor
2016-09-07 06:54:54 +01:00
parent 5dec3b5a6d
commit 694fe6b7af

View File

@@ -951,7 +951,7 @@ RESP_TYPE_MMDVM CModem::getResponse()
if (ret == 0)
return RTM_TIMEOUT;
if (m_buffer[1U] >= 150U) {
if (m_buffer[1U] >= 250U) {
LogError("Invalid length received from the modem - %u", m_buffer[1U]);
m_offset = 0U;
return RTM_ERROR;