From c6548bc1662a3eabc30f5407eec8d6cdb97db638 Mon Sep 17 00:00:00 2001 From: Viktor Dukhovni Date: Thu, 3 Oct 2013 20:41:49 -0400 Subject: [PATCH] Don't deref NULL pointer with klist -t --- kuser/klist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kuser/klist.c b/kuser/klist.c index 46d918849..4640a016b 100644 --- a/kuser/klist.c +++ b/kuser/klist.c @@ -360,7 +360,8 @@ check_expiration(krb5_context context, if (ret || t == 0) return 1; - *expiration = time(NULL) + t; + if (expiration) + *expiration = time(NULL) + t; return 0; }