summaryrefslogtreecommitdiff
path: root/source3/auth/auth_sam.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-04 10:02:43 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-04 10:02:43 +0000
commit3354f2548972d5b667d1cfda24d8b26d7946116e (patch)
tree9ff468f5b50f25cc1538c430ed16849f547f0a94 /source3/auth/auth_sam.c
parent89152846b71793790c955234f77e376cd73a60c2 (diff)
downloadsamba-3354f2548972d5b667d1cfda24d8b26d7946116e.tar.gz
samba-3354f2548972d5b667d1cfda24d8b26d7946116e.tar.bz2
samba-3354f2548972d5b667d1cfda24d8b26d7946116e.zip
Actually checking both the account and password tests would be a good idea...
Andrew Bartlett (This used to be commit 49640635b15f53be6bb28d3d79255abe10c207dd)
Diffstat (limited to 'source3/auth/auth_sam.c')
-rw-r--r--source3/auth/auth_sam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c
index 9650dc0940..06e27f1d48 100644
--- a/source3/auth/auth_sam.c
+++ b/source3/auth/auth_sam.c
@@ -420,13 +420,13 @@ static NTSTATUS check_sam_security(const struct auth_context *auth_context,
nt_status = sam_account_ok(mem_ctx, sampass, user_info);
- nt_status = sam_password_ok(auth_context, mem_ctx, sampass, user_info, user_sess_key);
-
if (!NT_STATUS_IS_OK(nt_status)) {
pdb_free_sam(&sampass);
return nt_status;
}
+ nt_status = sam_password_ok(auth_context, mem_ctx, sampass, user_info, user_sess_key);
+
if (!NT_STATUS_IS_OK(nt_status)) {
pdb_free_sam(&sampass);
return nt_status;