summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/session.c b/session.c
index 0cc919c6..296dfade 100644
--- a/session.c
+++ b/session.c
@@ -729,6 +729,8 @@ do_login(Session *s)
#ifdef USE_PAM
print_pam_messages();
+ /* If password change is needed, do it now. */
+ do_pam_chauthtok();
#endif /* USE_PAM */
#ifdef WITH_AIXAUTHENTICATE
if (aixloginmsg && *aixloginmsg)