mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
Greg Dickie: spotted bug where smb_nt_passwd could be NULL.
(This used to be commit d8946f1cc7b77b06f346344ffdb4772e6d225396)
This commit is contained in:
parent
a18c6ba9a4
commit
2aadefe8cc
@ -528,8 +528,15 @@ static uint32 net_login_interactive(NET_ID_INFO_1 *id1,
|
||||
dump_data(100, nt_pwd, 16);
|
||||
#endif
|
||||
|
||||
if (smb_pass->smb_nt_passwd == NULL)
|
||||
{
|
||||
DEBUG(5,("warning: NETLOGON user %s only has an LM password\n",
|
||||
smb_pass->unix_name));
|
||||
}
|
||||
|
||||
if (memcmp(smb_pass->smb_passwd , lm_pwd, 16) != 0 &&
|
||||
memcmp(smb_pass->smb_nt_passwd, nt_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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user