From f5a86add5c9b63a777a79d14da8daf3c7597b85b Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Wed, 25 Mar 2015 15:07:32 -0500 Subject: [PATCH] krb5_cc_get_lifetime() misses the TGT --- lib/krb5/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/cache.c b/lib/krb5/cache.c index e5032a3af..6c0019114 100644 --- a/lib/krb5/cache.c +++ b/lib/krb5/cache.c @@ -1679,7 +1679,7 @@ krb5_cc_get_lifetime(krb5_context context, krb5_ccache id, time_t *t) /** * If we find a krbtgt in the cache, use that as the lifespan. */ - if (krb5_principal_is_root_krbtgt(context, cred.client)) { + if (krb5_principal_is_root_krbtgt(context, cred.server)) { if (now < cred.times.endtime) endtime = cred.times.endtime; krb5_free_cred_contents(context, &cred);