summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_netlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_server/srv_netlog.c')
-rw-r--r--source3/rpc_server/srv_netlog.c6
1 files 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;
}