aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rpc.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2014-12-10 01:52:31 -0500
committerAnders Broman <a.broman58@gmail.com>2014-12-26 07:26:33 +0000
commitf2224bc578169548de0c25094f77b43d8f55d436 (patch)
tree9930664a198b8edbe11690fae9960f2a007b0fbb /epan/dissectors/packet-rpc.c
parentadb81f335d17a151361f00001e125480eeaf7bc5 (diff)
rpc: Prevent "malformed" for RPC 'NULL proc' packets.
Bug: 10646 Change-Id: Ifb96768969a43c59367b73e7bb940ceeb02cf6b0 Reviewed-on: https://code.wireshark.org/review/5700 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-rpc.c')
-rw-r--r--epan/dissectors/packet-rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-rpc.c b/epan/dissectors/packet-rpc.c
index 321639cac0..11fbfba531 100644
--- a/epan/dissectors/packet-rpc.c
+++ b/epan/dissectors/packet-rpc.c
@@ -2649,7 +2649,7 @@ dissect_rpc_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
if (tree && (flavor != FLAVOR_AUTHGSSAPI_MSG)) {
proto_item *tmp_item;
- pitem = proto_tree_add_item(tree, proto_id, tvb, offset, -1, ENC_NA);
+ pitem = proto_tree_add_item(tree, proto_id, tvb, offset, tvb_reported_length_remaining(tvb, offset), ENC_NA);
ptree = proto_item_add_subtree(pitem, ett);
tmp_item=proto_tree_add_uint(ptree,