s3: go straight to winbindd_dual_pam_auth() in case of !NT_STATUS_OK
authorLars Müller <lars@samba.org>
Wed, 17 Feb 2010 18:00:01 +0000 (19:00 +0100)
committerLars Müller <lars@samba.org>
Wed, 17 Feb 2010 18:00:01 +0000 (19:00 +0100)
At the formerly used process_result statement we have alone one
NT_STATUS_IS_OK() which never could be hit in our case as we only go here
if NT_STATUS_EQUAL is not ok.

source3/winbindd/winbindd_pam.c

index 4658231a5cb7872c0df30df900fb37480a7a2229..86c7bbfd8dad7c51bec8bd8363e510865c90acaa 100644 (file)
@@ -1549,7 +1549,7 @@ enum winbindd_result winbindd_dual_pam_auth(struct winbindd_domain *domain,
                    NT_STATUS_EQUAL(result, NT_STATUS_PASSWORD_EXPIRED) ||
                    NT_STATUS_EQUAL(result, NT_STATUS_PASSWORD_MUST_CHANGE) ||
                    NT_STATUS_EQUAL(result, NT_STATUS_WRONG_PASSWORD)) {
-                       goto process_result;
+                       goto done;
                }
 
                if (state->request->flags & WBFLAG_PAM_FALLBACK_AFTER_KRB5) {