aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2016-06-22 21:08:57 +0200
committerMichael Mann <mmann78@netscape.net>2016-06-22 21:24:06 +0000
commit692e2b65e6fe42754b58c8020b3b4e48ed739877 (patch)
treef898b01756968b4700375938084dd6d36f8a54c3 /epan
parente82d0aedec534606b53abf76a4c56781c5c1f83d (diff)
SSH: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: If084278acfeb82ae7c91aefff9035f156e8f4f15 Reviewed-on: https://code.wireshark.org/review/16079 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Kenny Root <kenny@the-b.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-ssh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ssh.c b/epan/dissectors/packet-ssh.c
index 940f7aeb9d..43cec6a233 100644
--- a/epan/dissectors/packet-ssh.c
+++ b/epan/dissectors/packet-ssh.c
@@ -651,11 +651,10 @@ ssh_tree_add_hostkey(tvbuff_t *tvb, int offset, proto_tree *parent_tree, const c
if (0 == strcmp(key_type, "ssh-rsa")) {
offset += ssh_tree_add_mpint(tvb, offset, tree, hf_ssh_hostkey_rsa_e);
- offset += ssh_tree_add_mpint(tvb, offset, tree, hf_ssh_hostkey_rsa_n);
+ ssh_tree_add_mpint(tvb, offset, tree, hf_ssh_hostkey_rsa_n);
} else {
remaining_len = key_len - (type_len + 4);
proto_tree_add_item(tree, hf_ssh_hostkey_data, tvb, offset, remaining_len, ENC_NA);
- offset += remaining_len;
}
return 4+key_len;