diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2020-07-26 11:17:38 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2020-07-26 10:04:24 +0000 |
commit | dba5465f1173bcb5992854e74b610aaef14a4989 (patch) | |
tree | e8121fa95bdeddc5b1b3e547e00ca10cea1d8fc4 /epan/dissectors/packet-mq.c | |
parent | 4805a70e0c687614fd458be4967f5916bb0410d2 (diff) |
MQ: Fix short NameValue presentation
Patch from Robert Grange
Bug: 16733
Change-Id: I7a11e060bb89aa1279a212f9dd958931c1031846
Reviewed-on: https://code.wireshark.org/review/37967
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-mq.c')
-rw-r--r-- | epan/dissectors/packet-mq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mq.c b/epan/dissectors/packet-mq.c index ef1a430add..fe4e432c2b 100644 --- a/epan/dissectors/packet-mq.c +++ b/epan/dissectors/packet-mq.c @@ -3393,13 +3393,12 @@ static void dissect_mq_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_item(mq_tree, hf_mq_head_flags, tvb, offset + 28, 4, p_mq_parm->mq_int_enc); iPos = offset + 32; - iEnd = offset + iLen - 32; + iEnd = offset + iLen; if (iVer > 1) { iCCSID = (int)tvb_get_guint32(tvb, iPos, p_mq_parm->mq_int_enc); proto_tree_add_item(mq_tree, hf_mq_rfh_ccsid, tvb, iPos, 4, p_mq_parm->mq_int_enc); iPos += 4; - iEnd -= 4; } else iCCSID = iTmp; |