aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-01-08 20:11:57 +0000
committerGuy Harris <guy@alum.mit.edu>2002-01-08 20:11:57 +0000
commitc78cb46c0ee1862bd9d80b777a0a49b28d3fef25 (patch)
tree8db4b9c5cdf29dbaa996411107e081e33ab5028b /packet-smb.c
parent12d566c0acad92a519b0bfef73a955a648f555fe (diff)
Use "proto_tree_add_item()", not "proto_tree_add_bytes()", to add an
item for extra data at the end of the Transaction2 request parameters. svn path=/trunk/; revision=4499
Diffstat (limited to 'packet-smb.c')
-rw-r--r--packet-smb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-smb.c b/packet-smb.c
index bce946915d..f10a872ff1 100644
--- a/packet-smb.c
+++ b/packet-smb.c
@@ -3,7 +3,7 @@
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
* 2001 Rewrite by Ronnie Sahlberg and Guy Harris
*
- * $Id: packet-smb.c,v 1.191 2002/01/08 05:52:04 guy Exp $
+ * $Id: packet-smb.c,v 1.192 2002/01/08 20:11:57 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -8605,7 +8605,8 @@ dissect_transaction2_request_parameters(tvbuff_t *tvb, packet_info *pinfo,
/* ooops there were data we didnt know how to process */
if((offset-old_offset) < bc){
- proto_tree_add_bytes(tree, hf_smb_unknown, tvb, offset, bc - (offset-old_offset), tvb_get_ptr(tvb, offset, 1));
+ proto_tree_add_item(tree, hf_smb_unknown, tvb, offset,
+ bc - (offset-old_offset), TRUE);
offset += bc - (offset-old_offset);
}