diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2015-04-21 14:12:59 -0400 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2015-04-23 02:09:16 +0000 |
commit | 3a42b55ac90f9d9aef943bb02c8d2c6444019ba8 (patch) | |
tree | 521d9426fb3a9d8bb2375491c5d527fe07ac8da9 /tools/wireshark_gen.py | |
parent | 7ccab8a6e183a535e1176e856852e2f574e76d43 (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 'tools/wireshark_gen.py')
-rwxr-xr-x | tools/wireshark_gen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/wireshark_gen.py b/tools/wireshark_gen.py index 82a9a0fd15..3028825fef 100755 --- a/tools/wireshark_gen.py +++ b/tools/wireshark_gen.py @@ -2564,7 +2564,7 @@ start_dissecting(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ptree, int *offs */ if (ptree) { - ti = proto_tree_add_item(ptree, proto_@dissname@, tvb, *offset, -1, ENC_NA); + ti = proto_tree_add_item(ptree, proto_@dissname@, tvb, *offset, tvb_reported_length_remaining(tvb, *offset), ENC_NA); tree = proto_item_add_subtree(ti, ett_@dissname@); } return tree; |