summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-01-05 23:20:59 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-01-05 23:20:59 +0000
commit39d8a9e488eb31796e8e7eca42fe27f8218ce5d6 (patch)
tree6430aa9d427930997d2e209ff5a1021896f73bc8
parent77b3515981ebe972a4c78e14b205d0c70a34b69f (diff)
downloadsamba-39d8a9e488eb31796e8e7eca42fe27f8218ce5d6.tar.gz
samba-39d8a9e488eb31796e8e7eca42fe27f8218ce5d6.tar.xz
samba-39d8a9e488eb31796e8e7eca42fe27f8218ce5d6.zip
(merge from 3.0)
Add the alignment required before all 2-byte quantities in NDR. Allows us to correctly parse plaintext netlogon calls with odd-length passwords Andrew Bartlett
-rw-r--r--source/rpc_parse/parse_net.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/rpc_parse/parse_net.c b/source/rpc_parse/parse_net.c
index 5df75fc5f6e..89673dd0e32 100644
--- a/source/rpc_parse/parse_net.c
+++ b/source/rpc_parse/parse_net.c
@@ -1540,6 +1540,9 @@ BOOL net_io_q_sam_logon(const char *desc, NET_Q_SAM_LOGON *q_l, prs_struct *ps,
if(!smb_io_sam_info("", &q_l->sam_id, ps, depth))
return False;
+ if(!prs_align_uint16(ps))
+ return False;
+
if(!prs_uint16("validation_level", ps, depth, &q_l->validation_level))
return False;