DOS: port might be null (#451)

This commit is contained in:
anthony-crystalpeak
2023-07-13 12:12:38 -07:00
committed by GitHub
parent 2bf1e9a548
commit 758cac3bed
+1 -1
View File
@@ -901,7 +901,7 @@ static void routed_apdu_handler(uint16_t snet,
datalink_send_pdu(port->net, &remote_dest, npdu, &Tx_Buffer[0],
npdu_len + apdu_len);
}
} else if (dest->net) {
} else if (port && dest->net) {
debug_printf("Routing to Unknown Route %u\n", (unsigned)dest->net);
/* Case 3: a global broadcast is required. */
dest->mac_len = 0;