aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/protocols/btlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/btlib.c b/src/lib/protocols/btlib.c
index ae3c1e365..14ec331b2 100644
--- a/src/lib/protocols/btlib.c
+++ b/src/lib/protocols/btlib.c
@@ -459,7 +459,7 @@ const u_int8_t *bt_decode(const u_int8_t *b, size_t *l, int *ret, bt_parse_data_
if(*ret < 0) goto bad_data;
cbd->t = 0;
*ls = 0;
- } while (*b != 'e' && l != 0);
+ } while (*b != 'e' && *l != 0);
b++; (*l)--;
cbd->level--;