diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2019-07-01 20:02:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-01 20:02:49 +0200 |
commit | 7cb7a12f968d863f2b8ce5f1eb3d9d52fefa3101 (patch) | |
tree | 5cd9d1776738bfb00f667af9456665ebc8293959 /src/lib/protocols/btlib.c | |
parent | 8fdef484f6c1e11cca0468032092f058cf803a14 (diff) | |
parent | 5ce5bae99dbb999921e50945495a5160c9de2953 (diff) |
Merge pull request #731 from themadprofessor/dev
Stability Fixes
Diffstat (limited to 'src/lib/protocols/btlib.c')
-rw-r--r-- | src/lib/protocols/btlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/btlib.c b/src/lib/protocols/btlib.c index 309a10717..71b4dff9a 100644 --- a/src/lib/protocols/btlib.c +++ b/src/lib/protocols/btlib.c @@ -423,7 +423,7 @@ const u_int8_t *bt_decode(const u_int8_t *b, size_t *l, int *ret, bt_parse_data_ int64_t d = 0; u_int8_t c; - if(*l == 0) return NULL; + if(!l || *l == 0) return NULL; if(cbd->level > BDEC_MAXDEPT) goto bad_data; c = *b++; (*l)--; if(c == 'i') { // integer |