1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

Dejan Ilic: spotted "NETLOGON" bug, failure of NT_STATUS WRONG_PASSWORD.

This commit is contained in:
Luke Leighton 0001-01-01 00:00:00 +00:00
parent e15da68824
commit 2f02a083b2

View File

@ -534,9 +534,9 @@ static uint32 net_login_interactive(NET_ID_INFO_1 *id1,
smb_pass->unix_name));
}
if (memcmp(smb_pass->smb_passwd , lm_pwd, 16) != 0 &&
(smb_pass->smb_nt_passwd == NULL ||
memcmp(smb_pass->smb_nt_passwd, nt_pwd, 16) != 0))
if (memcmp(smb_pass->smb_passwd , lm_pwd, 16) != 0 ||
smb_pass->smb_nt_passwd == NULL ||
memcmp(smb_pass->smb_nt_passwd, nt_pwd, 16) != 0)
{
status = 0xC0000000 | NT_STATUS_WRONG_PASSWORD;
}