summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/pampass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/pampass.c b/source3/auth/pampass.c
index c21a5b5319..1428e929f1 100644
--- a/source3/auth/pampass.c
+++ b/source3/auth/pampass.c
@@ -83,11 +83,11 @@ static BOOL smb_pam_nt_status_error_handler(pam_handle_t *pamh, int pam_error,
char *msg, int dbglvl,
NTSTATUS *nt_status)
{
+ *nt_status = pam_to_nt_status(pam_error);
+
if (smb_pam_error_handler(pamh, pam_error, msg, dbglvl))
return True;
- *nt_status = pam_to_nt_status(pam_error);
-
if (NT_STATUS_IS_OK(*nt_status)) {
/* Complain LOUDLY */
DEBUG(0, ("smb_pam_nt_status_error_handler: PAM: BUG: PAM and NT_STATUS \