aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ssh.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2015-10-30 19:53:21 +0100
committerMartin Kaiser <wireshark@kaiser.cx>2015-10-31 12:11:44 +0000
commit9180c27c5e47ce4fc8f92113c9e51a5b7294da9b (patch)
tree8d6b0ea8a78db64ad8618153007cf51655c56594 /epan/dissectors/packet-ssh.c
parentd2106a6f52fb531e7bd6a8006d76ed0272f1adba (diff)
[ssh] don't THROW() an exception from a dissector
Change-Id: Ibdbdcf59d7d7d28a812e31c7d7b2123b035f80fa Reviewed-on: https://code.wireshark.org/review/11461 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan/dissectors/packet-ssh.c')
-rw-r--r--epan/dissectors/packet-ssh.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ssh.c b/epan/dissectors/packet-ssh.c
index 2c3fb1d7fc..6922f2c109 100644
--- a/epan/dissectors/packet-ssh.c
+++ b/epan/dissectors/packet-ssh.c
@@ -419,8 +419,11 @@ dissect_ssh(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (need_desegmentation)
return;
- if (offset <= last_offset)
- THROW(ReportedBoundsError);
+ if (offset <= last_offset) {
+ /* XXX - add an expert info in the function
+ that decrements offset */
+ break;
+ }
}
col_prepend_fstr(pinfo->cinfo, COL_INFO, "%s: ", is_response ? "Server" : "Client");