(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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user