aboutsummaryrefslogtreecommitdiffstats
path: root/epan/crypt
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2018-06-15 12:53:26 +0000
committerDario Lombardo <lomato@gmail.com>2018-06-15 15:19:33 +0000
commit3d5b268323d1e8425b089b32fafdca6b071832f0 (patch)
tree9d877f8166a6c86805b675653789f7ad2ffe124e /epan/crypt
parent8c959c80e983f0500b7abd4d73d0b6e845e941c0 (diff)
dot11decrypt(crypt): Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: I33c6e456bc8c4bae47f4df1457799cb0d09b520f Reviewed-on: https://code.wireshark.org/review/28289 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Dario Lombardo <lomato@gmail.com>
Diffstat (limited to 'epan/crypt')
-rw-r--r--epan/crypt/dot11decrypt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/crypt/dot11decrypt.c b/epan/crypt/dot11decrypt.c
index 8942dbfcfc..225b0ea6dd 100644
--- a/epan/crypt/dot11decrypt.c
+++ b/epan/crypt/dot11decrypt.c
@@ -588,7 +588,6 @@ static INT Dot11DecryptScanForKeys(
/* start with descriptor body */
offset+=1;
- tot_len_left-=1;
/* search for a cached Security Association for current BSSID and AP */
sa = Dot11DecryptGetSaPtr(ctx, &id);
@@ -685,7 +684,6 @@ static INT Dot11DecryptScanForKeys(
/* skip Token + capabilities */
offset+=5;
- tot_len_left-=5;
/* search for RSN, Fast BSS Transition, Link Identifier and Timeout Interval IEs */