mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-10 01:14:38 +00:00
mesh: check network pdu size
This commit is contained in:
parent
619f4f6a3a
commit
298f1427a3
@ -720,6 +720,11 @@ void mesh_network_send_pdu(mesh_network_pdu_t * network_pdu){
|
||||
printf_hexdump(network_pdu->data, network_pdu->len);
|
||||
#endif
|
||||
|
||||
if (network_pdu->len > 29){
|
||||
printf("too long, %u\n", network_pdu->len);
|
||||
return;
|
||||
}
|
||||
|
||||
// setup callback
|
||||
network_pdu->callback = &mesh_network_send_d;
|
||||
network_pdu->flags = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user