mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-24 21:39:55 +00:00
mesh: assert on minimal network pdu len in mesh_lower_transport_send_pdu
This commit is contained in:
parent
ac2e9298fd
commit
48321319fb
@ -668,6 +668,14 @@ static void mesh_lower_transport_send_segmented_pdu_once(mesh_transport_pdu_t *t
|
||||
}
|
||||
|
||||
void mesh_lower_transport_send_pdu(mesh_pdu_t *pdu){
|
||||
if (pdu->pdu_type == MESH_PDU_TYPE_NETWORK){
|
||||
mesh_network_pdu_t * network_pdu = (mesh_network_pdu_t *) pdu;
|
||||
// network pdu without payload and minimal mic = 13 bytes
|
||||
if (network_pdu->len <13){
|
||||
printf("too short, %u\n", network_pdu->len);
|
||||
while(1);
|
||||
}
|
||||
}
|
||||
btstack_linked_list_add_tail(&lower_transport_outgoing, (btstack_linked_item_t*) pdu);
|
||||
mesh_lower_transport_run();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user