summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-02-05 23:45:29 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-02-05 23:45:29 +0000
commit4f442bc0112a701fec9df7c5ae8132fc73c0f74c (patch)
tree4df78c091a54b84a39fae5bd8bf15a6bcecaa7c0
parentdb0d2f8d6038f9d20429f2137986dc65d50137af (diff)
downloadsamba-4f442bc0112a701fec9df7c5ae8132fc73c0f74c.tar.gz
samba-4f442bc0112a701fec9df7c5ae8132fc73c0f74c.tar.bz2
samba-4f442bc0112a701fec9df7c5ae8132fc73c0f74c.zip
Fix use of uninitialsed variable in PAM code
(This used to be commit 6c08c233e6675056c0ee0bbc4ecdcbc205950f54)
-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 \