aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2025-01-13 20:13:29 +0100
committerGitHub <noreply@github.com>2025-01-13 20:13:29 +0100
commit9ab2b31e3fdb6ff39ce50b07139ad9dc3cc99e73 (patch)
tree64d2b8dd0cc2c5985d23e86c13e143e4efab6df9
parent129955ba2974edb7fb6dc5ab05e97fe82c514ec6 (diff)
Fix code scanning alert no. 14: Redundant null check due to previous dereference (#2674)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
-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--;