From 4f442bc0112a701fec9df7c5ae8132fc73c0f74c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 5 Feb 2002 23:45:29 +0000 Subject: Fix use of uninitialsed variable in PAM code (This used to be commit 6c08c233e6675056c0ee0bbc4ecdcbc205950f54) --- source3/auth/pampass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/auth') 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 \ -- cgit