mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-26 18:41:12 +00:00
correct check for ACL packet length
This commit is contained in:
parent
6c062428e1
commit
9ecc3e1772
@ -287,7 +287,7 @@ static void acl_handler(uint8_t *packet, int size){
|
||||
}
|
||||
|
||||
// assert packet is complete
|
||||
if (acl_length != size + 4){
|
||||
if (acl_length + 4 != size){
|
||||
log_error("hci.c: acl_handler called with ACL packet of wrong size %u, expected %u => dropping packet", size, acl_length + 4);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user