diff options
author | des <des@FreeBSD.org> | 2005-07-05 18:42:18 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2005-07-05 18:42:18 +0000 |
commit | 09a62d751039d62a78838eea38ca7dd6591622b0 (patch) | |
tree | 24a4cd898a8b00525b752383e6c56faf22f59ae8 /lib/libpam/modules/pam_unix/pam_unix.c | |
parent | 89b6b99eed37165d370427265ca036ac28017735 (diff) | |
download | FreeBSD-src-09a62d751039d62a78838eea38ca7dd6591622b0.zip FreeBSD-src-09a62d751039d62a78838eea38ca7dd6591622b0.tar.gz |
Use the correct login class when setting a new password.
PR: 65557, 72949
Submitted by: Stephen P. Cravey <clists@gotbrains.org>
Approved by: re (scottl)
MFC after: 2 weeks
Diffstat (limited to 'lib/libpam/modules/pam_unix/pam_unix.c')
-rw-r--r-- | lib/libpam/modules/pam_unix/pam_unix.c | 2 |
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"); |