aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dcerpc-netlogon.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-03-13 09:03:28 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-03-13 09:03:28 +0000
commit7224c4f42a3a400427ca781133370e000375fc73 (patch)
treea5b966f2d862a3880d4a649f1f028c1beaa6de3b /packet-dcerpc-netlogon.c
parent5a801aacfa89a70b756b0c5593a1eab919bf80d5 (diff)
Fixed bug in SAMDELTAS_request.
There is still a bug in the dissection of SAMDELTA_reply but this is due to LSA_SECRET not being implemented yet which is embedded in one of the netlogon structures. svn path=/trunk/; revision=4935
Diffstat (limited to 'packet-dcerpc-netlogon.c')
-rw-r--r--packet-dcerpc-netlogon.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/packet-dcerpc-netlogon.c b/packet-dcerpc-netlogon.c
index ab1bafcad2..0c6f4e67f6 100644
--- a/packet-dcerpc-netlogon.c
+++ b/packet-dcerpc-netlogon.c
@@ -3,7 +3,7 @@
* Copyright 2001, Tim Potter <tpot@samba.org>
* 2002 structure and command dissectors by Ronnie Sahlberg
*
- * $Id: packet-dcerpc-netlogon.c,v 1.4 2002/03/13 07:38:33 sahlberg Exp $
+ * $Id: packet-dcerpc-netlogon.c,v 1.5 2002/03/13 09:03:28 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -2850,6 +2850,7 @@ netlogon_dissect_TYPE_19(tvbuff_t *tvb, int offset,
offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, drep,
hf_netlogon_level, &level);
+ ALIGN_TO_4_BYTES;
switch(level){
case 1:
offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep,
@@ -3039,6 +3040,7 @@ netlogon_dissect_TYPE_20(tvbuff_t *tvb, int offset,
offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, drep,
hf_netlogon_level, &level);
+ ALIGN_TO_4_BYTES;
switch(level){
case 1:
offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
@@ -3609,8 +3611,10 @@ static int
netlogon_dissect_netsamdeltas_rqst(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree, char *drep)
{
- offset = netlogon_dissect_LOGONSRV_HANDLE(tvb, offset,
- pinfo, tree, drep);
+ /* XXX idl file has LOGONSRV_HANDLE here, ms capture has string srv_name */
+ offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
+ dissect_ndr_nt_UNICODE_STRING_str, NDR_POINTER_REF,
+ "srv_name", hf_netlogon_logon_srv, -1);
offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
dissect_ndr_nt_UNICODE_STRING_str, NDR_POINTER_REF,