aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ssh.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-06-02 13:25:02 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-06-02 13:25:02 +0000
commit96beb44145f9299bbb153b01868405ba5f6c85b7 (patch)
treeea78ab88bcb7ece94c797649bdbd81df532b7db5 /epan/dissectors/packet-ssh.c
parent0da41f3c89875b28fd8fdb50cb303a0d4461e771 (diff)
From Evan Huus Useless null check in packet-ssh.c https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7319
svn path=/trunk/; revision=42996
Diffstat (limited to 'epan/dissectors/packet-ssh.c')
-rw-r--r--epan/dissectors/packet-ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ssh.c b/epan/dissectors/packet-ssh.c
index 230aa5f0ff..105f49da6e 100644
--- a/epan/dissectors/packet-ssh.c
+++ b/epan/dissectors/packet-ssh.c
@@ -457,7 +457,7 @@ ssh_dissect_ssh2(tvbuff_t *tvb, packet_info *pinfo,
ti=proto_tree_add_text(tree,tvb,offset,-1, "%s", title->str);
ssh2_tree = proto_item_add_subtree(ti ,ett_ssh2);
- if (title) g_string_free(title,TRUE);
+ g_string_free(title,TRUE);
}
if((is_response && this_number > 3) || (!is_response && this_number>4)) {