summaryrefslogtreecommitdiff
path: root/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth.c b/auth.c
index ccce644a7..ae8c79843 100644
--- a/auth.c
+++ b/auth.c
@@ -98,8 +98,8 @@ allowed_user(struct passwd * pw)
98 return 0; 98 return 0;
99 99
100 /* Check password expiry */ 100 /* Check password expiry */
101 if ((spw->sp_lstchg > 0) && (spw->sp_inact > 0) && 101 if ((spw->sp_lstchg > 0) && (spw->sp_max > 0) &&
102 (days > (spw->sp_lstchg + spw->sp_inact))) 102 (days > (spw->sp_lstchg + spw->sp_max)))
103 return 0; 103 return 0;
104 } 104 }
105#else 105#else