Don't deref NULL pointer with klist -t

This commit is contained in:
Viktor Dukhovni
2013-10-03 20:41:49 -04:00
parent dba64ce7f5
commit c6548bc166

View File

@@ -360,7 +360,8 @@ check_expiration(krb5_context context,
if (ret || t == 0) if (ret || t == 0)
return 1; return 1;
*expiration = time(NULL) + t; if (expiration)
*expiration = time(NULL) + t;
return 0; return 0;
} }