diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2013-08-30 18:13:54 +0000 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2013-08-30 18:13:54 +0000 |
commit | 8445c81d50c9c49b61298eed974dbe9f0ed1826c (patch) | |
tree | 50e6430d9711f1a8580da57ad44863c8ba482e75 /epan/dissectors/packet-mq.c | |
parent | 777613f96499f135d99551bdb5b7f1f95bb60bfe (diff) |
(try to) fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9079
don't enter the for loop if there are no components to dissect
svn path=/trunk/; revision=51603
Diffstat (limited to 'epan/dissectors/packet-mq.c')
-rw-r--r-- | epan/dissectors/packet-mq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mq.c b/epan/dissectors/packet-mq.c index cc6d55a7b7..9484a741d2 100644 --- a/epan/dissectors/packet-mq.c +++ b/epan/dissectors/packet-mq.c @@ -1058,7 +1058,8 @@ dissect_mq_pmr(tvbuff_t *tvb, proto_tree *tree, gint int_rep, gint offset, gint +(((recFlags & MQ_PMRF_GROUP_ID) != 0) * 24) +(((recFlags & MQ_PMRF_FEEDBACK) != 0) * 4) +(((recFlags & MQ_PMRF_ACCOUNTING_TOKEN) != 0) * 32)); - if (offsetPMR != 0) + + if (offsetPMR!=0 && iSizePMR1!=0) { iSizePMR = iNbrRecords * iSizePMR1; if (tvb_length_remaining(tvb, offset) >= iSizePMR) |