aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-parlay.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2015-04-21 14:12:59 -0400
committerEvan Huus <eapache@gmail.com>2015-04-23 02:09:16 +0000
commit3a42b55ac90f9d9aef943bb02c8d2c6444019ba8 (patch)
tree521d9426fb3a9d8bb2375491c5d527fe07ac8da9 /epan/dissectors/packet-parlay.c
parent7ccab8a6e183a535e1176e856852e2f574e76d43 (diff)
idl2wrs: don't use -1 for the protocol-item length.
It doesn't work any more for empty (length==0) PDUs. Similar to bug 10646/Ifb96768969a43c59367b73e7bb940ceeb02cf6b0 (for RPC). Untested as I'm not set up to build IDL dissectors now. Bug: 11134 Change-Id: I77aacc2590acbacbe02edb1768e754f92f87bc23 Reviewed-on: https://code.wireshark.org/review/8163 Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-parlay.c')
-rw-r--r--epan/dissectors/packet-parlay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-parlay.c b/epan/dissectors/packet-parlay.c
index 959f4003cc..f5f660b602 100644
--- a/epan/dissectors/packet-parlay.c
+++ b/epan/dissectors/packet-parlay.c
@@ -56909,7 +56909,7 @@ start_dissecting(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ptree, int *offs
*/
if (ptree) {
- ti = proto_tree_add_item(ptree, proto_parlay, tvb, *offset, -1, ENC_NA);
+ ti = proto_tree_add_item(ptree, proto_parlay, tvb, *offset, tvb_reported_length_remaining(tvb, *offset), ENC_NA);
tree = proto_item_add_subtree(ti, ett_parlay);
}
return tree;