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>
This commit is contained in:
parent
0dada943c0
commit
59f15b2a3a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue