diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-09-13 11:12:49 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2015-09-14 09:10:04 +0000 |
commit | a0cfeab7f62bf033f0939ac4fb3f615f3f067384 (patch) | |
tree | 5f3eed45b5590879f430f9b553a36aa8387a2ad1 /epan/dissectors/packet-ssl-utils.c | |
parent | 908efe0a324cfcd453c8c3ff33ec5c08559c8e95 (diff) |
SSL: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: Ice4523786238f17250961a85988a195f2df8e888
Reviewed-on: https://code.wireshark.org/review/10507
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Olaf Bergmann <bergmann@tzi.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/dissectors/packet-ssl-utils.c')
-rw-r--r-- | epan/dissectors/packet-ssl-utils.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ssl-utils.c b/epan/dissectors/packet-ssl-utils.c index fb5bce333f..9285bacdaa 100644 --- a/epan/dissectors/packet-ssl-utils.c +++ b/epan/dissectors/packet-ssl-utils.c @@ -5770,15 +5770,11 @@ ssl_dissect_hnd_cert(ssl_common_dissect_t *hf, tvbuff_t *tvb, proto_tree *tree, switch (cert_type) { case CERT_RPK: { - guint32 cert_length; - cert_length = tvb_get_ntoh24(tvb, offset); - proto_tree_add_item(tree, hf->hf.hs_certificate_len, tvb, offset, 3, ENC_BIG_ENDIAN); offset += 3; dissect_x509af_SubjectPublicKeyInfo(FALSE, tvb, offset, &asn1_ctx, tree, hf->hf.hs_certificate); - offset += cert_length; break; } |