Add the alignment required before all 2-byte quantities in NDR. Allows us
authorAndrew Bartlett <abartlet@samba.org>
Mon, 29 Dec 2003 04:21:32 +0000 (04:21 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 29 Dec 2003 04:21:32 +0000 (04:21 +0000)
to correctly parse plaintext netlogon calls with odd-length passwords

Andrew Bartlett
(This used to be commit de3c3cbeeb8b674ffc0dd8fe16913f15edcf9022)

source3/rpc_parse/parse_net.c

index 5df75fc5f6e2381e725f883a68d7a66dc16f8108..89673dd0e32d9db903ac043a8306379733baa4b8 100644 (file)
@@ -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;