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:
parent
b5bbbc47b7
commit
012400dfcd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user