BUGFIX: validate destination matches before handling TDU;

r05a04_dev
Bryan Biedenkapp 1 month ago
parent 2caaccd9a9
commit 7c98c1fbc8

@ -990,14 +990,17 @@ void HostPatch::processP25Network(uint8_t* buffer, uint32_t length)
lsd.setLSD2(lsd2); lsd.setLSD2(lsd2);
if ((duid == DUID::TDU) || (duid == DUID::TDULC)) { if ((duid == DUID::TDU) || (duid == DUID::TDULC)) {
// ignore TDU's that are grant demands // ensure destination ID matches
if (grantDemand) { if (dstId != m_srcTGId && dstId != m_dstTGId) {
m_network->resetP25(); // ignore TDU's that are grant demands
if (grantDemand) {
m_network->resetP25();
return;
}
resetP25Call(srcId);
return; return;
} }
resetP25Call(srcId);
return;
} }
if (control.getLCO() == LCO::GROUP) { if (control.getLCO() == LCO::GROUP) {

Loading…
Cancel
Save

Powered by TurnKey Linux.