aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb-pipe.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-02-20 07:55:00 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-02-20 07:55:00 +0000
commit92313bafb64978c0f5fdf2bfd0c5120eed21000a (patch)
treefd1d24714aa3b43500cfc9cccddcf85de20190c6 /packet-smb-pipe.c
parent4a4611b033ddb86a1518a06070c20e3d5b6e94b4 (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7175 f5534014-38df-0310-8fa8-9805f1628bb7
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;
}