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
This commit is contained in:
parent
9f089e90d8
commit
fa51805340
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue