From 9ecc3e17727fb73d134e6397f263f83ef7ca0be1 Mon Sep 17 00:00:00 2001 From: "mila@ringwald.ch" Date: Tue, 26 Nov 2013 23:28:13 +0000 Subject: [PATCH] correct check for ACL packet length --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index 2e10ba9ed..248e9b30d 100644 --- a/src/hci.c +++ b/src/hci.c @@ -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; }