aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2019-04-22 09:17:58 +0000
committerAnders Broman <a.broman58@gmail.com>2019-04-22 16:31:45 +0000
commitc802a83363b22dfa9417707f4714128442c4148e (patch)
treeb5cf71a1b20045764eeb805a798ffdb6fc126bcf /epan/dissectors
parent4008f01ab345dfb80eb7dabbd91cd762a31eabba (diff)
isakmp: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: I8f9fef6038cd99e19c8d3f51ae527eec11226042 Reviewed-on: https://code.wireshark.org/review/32937 Reviewed-by: Uli Heilmeier <openid@heilmeier.eu> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-isakmp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/epan/dissectors/packet-isakmp.c b/epan/dissectors/packet-isakmp.c
index 1ed6eed9fe..801388f1b8 100644
--- a/epan/dissectors/packet-isakmp.c
+++ b/epan/dissectors/packet-isakmp.c
@@ -5396,7 +5396,6 @@ dissect_sa_kek(tvbuff_t *tvb, packet_info *pinfo _U_, int offset, int length, pr
proto_tree_add_item(tree, hf_isakmp_reserved, tvb, offset, 4, ENC_NA);
offset += 4;
proto_tree_add_item(tree, hf_isakmp_sak_kek_attributes, tvb, offset, offset_end - offset, ENC_NA);
- offset += (offset_end - offset);
}
static void
@@ -5436,10 +5435,8 @@ dissect_sa_tek(tvbuff_t *tvb, packet_info *pinfo _U_, int offset, int length, pr
proto_tree_add_item(tree, hf_isakmp_sat_spi, tvb, offset, 4, ENC_NA);
offset += 4;
proto_tree_add_item(tree, hf_isakmp_sat_sa_attributes, tvb, offset, offset_end - offset, ENC_NA);
- offset += (offset_end - offset);
} else {
proto_tree_add_item(tree, hf_isakmp_sat_payload, tvb, offset, offset_end - offset, ENC_NA);
- offset += (offset_end - offset);
}
}