diff --git a/source/rpc_server/srv_netlog.c b/source/rpc_server/srv_netlog.c index 1bb86e183f7..33af093625f 100644 --- a/source/rpc_server/srv_netlog.c +++ b/source/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; }