diff options
Diffstat (limited to 'modules/pam_unix/pam_unix.c')
-rw-r--r-- | modules/pam_unix/pam_unix.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/pam_unix/pam_unix.c b/modules/pam_unix/pam_unix.c index 4072938..ad066e0 100644 --- a/modules/pam_unix/pam_unix.c +++ b/modules/pam_unix/pam_unix.c @@ -94,7 +94,6 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, pam_err = pam_get_authtok(pamh, PAM_AUTHTOK, (const char **) &pass, NULL); PAM_LOG("Got password for user [%s]", user); - if (pam_err == PAM_CONV_ERR) return (pam_err); if (pam_err != PAM_SUCCESS) @@ -144,7 +143,7 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags , int pam_err; const char *user; time_t curtime; - + /* Sanity checks for uname,pwd,tty,host etc */ pam_err = pam_get_user(pamh, &user, NULL); @@ -205,6 +204,7 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags , } } + pam_err = (PAM_SUCCESS); return (pam_err); @@ -396,7 +396,6 @@ pam_sm_close_session( pam_handle_t * pamh, int flags, { char *user, *service; int pam_err; - pam_err = pam_get_item(pamh, PAM_USER, (void *) &user); if ( pam_err != PAM_SUCCESS || user == NULL || *user == '\0') { PAM_ERROR("Close session - Error recovering username"); |