Fix use of uninitialsed variable in PAM code
authorAndrew Bartlett <abartlet@samba.org>
Tue, 5 Feb 2002 23:45:29 +0000 (23:45 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 5 Feb 2002 23:45:29 +0000 (23:45 +0000)
(This used to be commit 6c08c233e6675056c0ee0bbc4ecdcbc205950f54)

source3/auth/pampass.c

index c21a5b5319bb84685597658ff68c3538204bc495..1428e929f166fb81768acaacddff475f86c1cae0 100644 (file)
@@ -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 \