aboutsummaryrefslogtreecommitdiffstats
path: root/packet-netbios.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-09-29 20:32:29 +0000
committerGuy Harris <guy@alum.mit.edu>2001-09-29 20:32:29 +0000
commit745d836320979db453ca0b7e9aabf93294e2a9f4 (patch)
tree39157f531410dfd51c728ab20c0ee0ca60a36a05 /packet-netbios.c
parentf2cb0c704d2132b72c13c499779ce732140850fc (diff)
Make the item for NetBIOS only as long as the NetBIOS header, so that it
doesn't cover the payload. svn path=/trunk/; revision=3977
Diffstat (limited to 'packet-netbios.c')
-rw-r--r--packet-netbios.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-netbios.c b/packet-netbios.c
index 8236aad4e1..31cd63e6e6 100644
--- a/packet-netbios.c
+++ b/packet-netbios.c
@@ -5,7 +5,7 @@
*
* derived from the packet-nbns.c
*
- * $Id: packet-netbios.c,v 1.38 2001/09/29 01:19:00 guy Exp $
+ * $Id: packet-netbios.c,v 1.39 2001/09/29 20:32:29 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1028,7 +1028,7 @@ dissect_netbios(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
if ( tree) {
- ti = proto_tree_add_item(tree, proto_netbios, tvb, 0, tvb_length(tvb), FALSE);
+ ti = proto_tree_add_item(tree, proto_netbios, tvb, 0, hdr_len, FALSE);
netb_tree = proto_item_add_subtree(ti, ett_netb);
proto_tree_add_uint_format(netb_tree, hf_netb_hdr_len, tvb, offset, 2, hdr_len,