diff options
author | ache <ache@FreeBSD.org> | 2002-01-19 08:36:47 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2002-01-19 08:36:47 +0000 |
commit | b0127287cca64a0636f3af614479d71e89a49fba (patch) | |
tree | b6a86e4ef7ecc3019e0e7f6ef848aaa23f502bc1 /lib | |
parent | a9af62e0f110e71e05c411ff6335d61cd75708d5 (diff) | |
download | FreeBSD-src-b0127287cca64a0636f3af614479d71e89a49fba.zip FreeBSD-src-b0127287cca64a0636f3af614479d71e89a49fba.tar.gz |
Previous commit was incomplete, use new error code PAM_CRED_ERR to
indicate die case, different from PAM_SUCCESS and PAM_AUTH_ERR
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libpam/modules/pam_opie/pam_opie.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libpam/modules/pam_opie/pam_opie.c b/lib/libpam/modules/pam_opie/pam_opie.c index 5365606..e030194 100644 --- a/lib/libpam/modules/pam_opie/pam_opie.c +++ b/lib/libpam/modules/pam_opie/pam_opie.c @@ -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); |