diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2017-06-17 13:24:22 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-06-20 00:31:01 +0000 |
commit | 59f15b2a3a4d34bc941bdb83eb784de432522477 (patch) | |
tree | b4de75e77685adce82c68ea6f90a6ccf4225039e /epan/dissectors/packet-mq.c | |
parent | 0dada943c0671637c29dab86b82fd07cc48ca849 (diff) |
mq: don't THROW() an exception from a dissector
We can simply stop the dissection and exit.
Change-Id: Ida8895513a1949fe5826ab89ffec2168642a9e89
Reviewed-on: https://code.wireshark.org/review/22237
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-mq.c')
-rw-r--r-- | epan/dissectors/packet-mq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mq.c b/epan/dissectors/packet-mq.c index fa100f8c3c..a62c5a8b33 100644 --- a/epan/dissectors/packet-mq.c +++ b/epan/dissectors/packet-mq.c @@ -3571,7 +3571,7 @@ static void dissect_mq_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* XXX - 32 is inferred from the code below. What's the * correct minimum? */ if (iSizeHeader <= 32) - THROW(ReportedBoundsError); + return; p_mq_parm->mq_head_ccsid.encod = tvb_get_guint32(tvb, offset + 12, p_mq_parm->mq_int_enc); p_mq_parm->mq_head_ccsid.ccsid = tvb_get_guint32(tvb, offset + 16, p_mq_parm->mq_int_enc); |