aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb-pipe.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-02-20 07:55:00 +0000
committerGuy Harris <guy@alum.mit.edu>2003-02-20 07:55:00 +0000
commitdd22e794c3bc6964cdf70cce6b38756826a09d13 (patch)
treefd1d24714aa3b43500cfc9cccddcf85de20190c6 /packet-smb-pipe.c
parent03533b258b64e683e6a3ff13ce4d83ce6574dfef (diff)
At least in regular SMB Browse and RAP messages, the server type mask is
not guaranteed to be aligned on a 4-byte boundary, so, if we're not dissecting a DCE RPC request or reply, don't use "dissect_ndr_uint32()" to extract the access mask. svn path=/trunk/; revision=7175
Diffstat (limited to 'packet-smb-pipe.c')
-rw-r--r--packet-smb-pipe.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/packet-smb-pipe.c b/packet-smb-pipe.c
index d9c4f0a2ac..be9e6c3bdf 100644
--- a/packet-smb-pipe.c
+++ b/packet-smb-pipe.c
@@ -8,7 +8,7 @@ XXX Fixme : shouldnt show [malformed frame] for long packets
* significant rewrite to tvbuffify the dissector, Ronnie Sahlberg and
* Guy Harris 2001
*
- * $Id: packet-smb-pipe.c,v 1.86 2003/02/17 01:59:39 tpot Exp $
+ * $Id: packet-smb-pipe.c,v 1.87 2003/02/20 07:55:00 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -470,9 +470,8 @@ static int
add_server_type(tvbuff_t *tvb, int offset, int count _U_,
packet_info *pinfo, proto_tree *tree, int convert _U_, int hf_index _U_)
{
- char drep = 0x10; /* Assume little-endian */
offset = dissect_smb_server_type_flags(
- tvb, offset, pinfo, tree, &drep, FALSE);
+ tvb, offset, pinfo, tree, NULL, FALSE);
return offset;
}
@@ -480,9 +479,8 @@ static int
add_server_type_info(tvbuff_t *tvb, int offset, int count _U_,
packet_info *pinfo, proto_tree *tree, int convert _U_, int hf_index _U_)
{
- char drep = 0x10; /* Assume little-endian */
offset = dissect_smb_server_type_flags(
- tvb, offset, pinfo, tree, &drep, TRUE);
+ tvb, offset, pinfo, tree, NULL, TRUE);
return offset;
}