diff options
author | Luke Leighton <lkcl@samba.org> | 1999-04-06 16:36:52 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-04-06 16:36:52 +0000 |
commit | bc973ffbddc96e0b43edae2df1f8240bb25789b6 (patch) | |
tree | 00b61564f818c77ed5edafce2b09ee60ff134c2a | |
parent | 44784f69e0390af171d2206b964253a34ac19b4d (diff) | |
download | samba-bc973ffbddc96e0b43edae2df1f8240bb25789b6.tar.gz samba-bc973ffbddc96e0b43edae2df1f8240bb25789b6.tar.bz2 samba-bc973ffbddc96e0b43edae2df1f8240bb25789b6.zip |
Dejan Ilic: spotted "NETLOGON" bug, failure of NT_STATUS WRONG_PASSWORD.
(This used to be commit 2f02a083b2f766d2f3d3f410377da7f552739345)
-rw-r--r-- | source3/rpc_server/srv_netlog.c | 6 |
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; } |