diff --git a/sesman/verify_user.c b/sesman/verify_user.c index edfd4572..18980aaf 100644 --- a/sesman/verify_user.c +++ b/sesman/verify_user.c @@ -164,6 +164,10 @@ auth_check_pwd_chg(char* user) now=g_time1(); today=now/SECS_PER_DAY; + if (stp->sp_expire == -1) + { + return AUTH_PWD_CHG_OK; + } if (today >= (stp->sp_lstchg + stp->sp_max - stp->sp_warn)) { return AUTH_PWD_CHG_CHANGE;