1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

r7708: Hint from Luke Howard (thanks Luke). Ensure the schannel authenticator is 8

byte aligned, just like the NTLMSSP ones. Trying to fix 64-bit Windows domain
logon.
Jeremy.
This commit is contained in:
Jeremy Allison 2005-06-18 04:23:06 +00:00 committed by Gerald (Jerry) Carter
parent 55038d9318
commit 475d5a277d

View File

@ -162,7 +162,7 @@ BOOL create_next_pdu(pipes_struct *p)
if(p->out_data.data_sent_length + data_len >= prs_offset(&p->out_data.rdata)) {
p->hdr.flags |= RPC_FLG_LAST;
if ((auth_seal || auth_verify) && (data_len_left % 8)) {
if ((auth_seal || auth_verify || p->netsec_auth_validated) && (data_len_left % 8)) {
ss_padding_len = 8 - (data_len_left % 8);
DEBUG(10,("create_next_pdu: adding sign/seal padding of %u\n",
ss_padding_len ));