hotfix to correct a condition where an early RID or TGID rejection could cause the P25 network stack to latch a Rx stream and not release it, resulting in a lockup until RF traffic arrives to reset the latched stream;

pull/138/head
Bryan Biedenkapp 3 days ago
parent 2b63866f42
commit b4193d871c

@ -1907,6 +1907,10 @@ void Voice::writeNet_LDU1()
// validate source RID
if (!acl::AccessControl::validateSrcId(srcId)) {
LogWarning(LOG_NET, P25_HDU_STR " denial, RID rejection, srcId = %u", srcId);
resetNet();
m_p25->m_netState = RS_NET_IDLE;
if (m_p25->m_network != nullptr)
m_p25->m_network->resetP25();
return;
}
@ -1915,6 +1919,10 @@ void Voice::writeNet_LDU1()
// validate the target RID
if (!acl::AccessControl::validateSrcId(dstId)) {
LogWarning(LOG_NET, P25_HDU_STR " denial, RID rejection, dstId = %u", dstId);
resetNet();
m_p25->m_netState = RS_NET_IDLE;
if (m_p25->m_network != nullptr)
m_p25->m_network->resetP25();
return;
}
}
@ -1922,6 +1930,10 @@ void Voice::writeNet_LDU1()
// validate the target ID, if the target is a talkgroup
if (!acl::AccessControl::validateTGId(dstId)) {
LogWarning(LOG_NET, P25_HDU_STR " denial, TGID rejection, dstId = %u", dstId);
resetNet();
m_p25->m_netState = RS_NET_IDLE;
if (m_p25->m_network != nullptr)
m_p25->m_network->resetP25();
return;
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.