Previous commit was incomplete, use new error code PAM_CRED_ERR to

indicate die case, different from PAM_SUCCESS and PAM_AUTH_ERR
This commit is contained in:
Andrey A. Chernov 2002-01-19 08:36:47 +00:00
parent b5bbbc47b7
commit 012400dfcd

View File

@ -143,8 +143,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv)
* success or lack thereof.
*/
if (opieverify(&opie, resp) != 0)
/* Chained pam_unix expected */
retval = pwok ? PAM_SUCCESS : PAM_AUTH_ERR;
retval = pwok ? PAM_AUTH_ERR : PAM_CRED_ERR;
else
retval = PAM_SUCCESS;
PAM_RETURN(retval);