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);