(check_shadow): check for a NULL sp

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6765 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-08-07 09:12:36 +00:00
parent b7b022d9ca
commit ea6f986fd1

View File

@@ -72,6 +72,9 @@ check_shadow(struct passwd *pw, struct spwd *sp)
today = time(0)/(24L * 60 * 60);
if (sp == NULL)
return;
if (sp->sp_expire > 0) {
if (today >= sp->sp_expire) {
printf("Your account has expired.\n");