summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libpam/modules/pam_unix/pam_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpam/modules/pam_unix/pam_unix.c b/lib/libpam/modules/pam_unix/pam_unix.c
index 6a115bf..26084ec 100644
--- a/lib/libpam/modules/pam_unix/pam_unix.c
+++ b/lib/libpam/modules/pam_unix/pam_unix.c
@@ -372,7 +372,7 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags,
return (PAM_BUF_ERR);
pwd->pw_change = 0;
- lc = login_getclass(NULL);
+ lc = login_getclass(pwd->pw_class);
if (login_setcryptfmt(lc, password_hash, NULL) == NULL)
openpam_log(PAM_LOG_ERROR,
"can't set password cipher, relying on default");
OpenPOWER on IntegriCloud