From bc973ffbddc96e0b43edae2df1f8240bb25789b6 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Tue, 6 Apr 1999 16:36:52 +0000 Subject: Dejan Ilic: spotted "NETLOGON" bug, failure of NT_STATUS WRONG_PASSWORD. (This used to be commit 2f02a083b2f766d2f3d3f410377da7f552739345) --- source3/rpc_server/srv_netlog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/rpc_server/srv_netlog.c b/source3/rpc_server/srv_netlog.c index 1bb86e183f..33af093625 100644 --- a/source3/rpc_server/srv_netlog.c +++ b/source3/rpc_server/srv_netlog.c @@ -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; } -- cgit