diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-12-29 04:21:32 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-12-29 04:21:32 +0000 |
commit | de3c3cbeeb8b674ffc0dd8fe16913f15edcf9022 (patch) | |
tree | 9763904aca258e12beefd518668acd8ddb61bd52 /source | |
parent | 8f9a069c59cbd357cbef8814764c10f6d8b6e6e8 (diff) | |
download | samba-de3c3cbeeb8b674ffc0dd8fe16913f15edcf9022.tar.gz samba-de3c3cbeeb8b674ffc0dd8fe16913f15edcf9022.tar.xz samba-de3c3cbeeb8b674ffc0dd8fe16913f15edcf9022.zip |
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
Diffstat (limited to 'source')
-rw-r--r-- | source/rpc_parse/parse_net.c | 3 |
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; |