aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dcerpc.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-05-10 02:29:44 +0000
committerGuy Harris <guy@alum.mit.edu>2003-05-10 02:29:44 +0000
commitfa5180534065eb1570498155f34f486586d93438 (patch)
treee130f4e5d7a2499487b1d0d12a39fe8cc1541456 /packet-dcerpc.c
parent9f089e90d82fc2f47eec49a7ce3affdfdb294adc (diff)
Have "dissect_ndr_cvstring()" set the length of the top-level item to
cover all the parts of the item, rather than just making it be 0. svn path=/trunk/; revision=7661
Diffstat (limited to 'packet-dcerpc.c')
-rw-r--r--packet-dcerpc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-dcerpc.c b/packet-dcerpc.c
index 3a01499421..721bf0feff 100644
--- a/packet-dcerpc.c
+++ b/packet-dcerpc.c
@@ -2,7 +2,7 @@
* Routines for DCERPC packet disassembly
* Copyright 2001, Todd Sabin <tas@webspan.net>
*
- * $Id: packet-dcerpc.c,v 1.119 2003/05/10 01:57:53 guy Exp $
+ * $Id: packet-dcerpc.c,v 1.120 2003/05/10 02:29:44 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -990,7 +990,7 @@ dissect_ndr_cvstring(tvbuff_t *tvb, int offset, packet_info *pinfo,
}
if (add_subtree) {
- string_item = proto_tree_add_text(tree, tvb, offset, 0, "%s",
+ string_item = proto_tree_add_text(tree, tvb, offset, -1, "%s",
proto_registrar_get_name(hfindex));
string_tree = proto_item_add_subtree(string_item, ett_dcerpc_string);
} else {
@@ -1060,6 +1060,8 @@ dissect_ndr_cvstring(tvbuff_t *tvb, int offset, packet_info *pinfo,
offset += buffer_len;
+ proto_item_set_end(string_item, tvb, offset);
+
return offset;
}