From 86e7a0273ae3a95360f84de0283cea053e5fbe2d Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Fri, 30 Aug 2019 13:31:11 +0000 Subject: isakmp: Fix Dead Store Fix dead store (Dead assignement/Dead increment) Warning found by Clang Change-Id: I318fec3f9cf8d86eaa4260f00e8747683a049e6e Reviewed-on: https://code.wireshark.org/review/34407 Reviewed-by: Jaap Keuter Petri-Dish: Jaap Keuter Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs --- epan/dissectors/packet-isakmp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/epan/dissectors/packet-isakmp.c b/epan/dissectors/packet-isakmp.c index 640c396395..2f9301690e 100644 --- a/epan/dissectors/packet-isakmp.c +++ b/epan/dissectors/packet-isakmp.c @@ -5619,8 +5619,6 @@ dissect_tek_key_attribute(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, i &headerlen, &value_len, &attr_type, &attr_item, &attr_tree); - offset += headerlen; - if (value_len == 0) { expert_add_info(pinfo, attr_item, &ei_isakmp_attribute_value_empty); -- cgit v1.2.3