From 055addf9681de35e439c8b8e4aa851a8739d1c6b Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 9 Oct 2000 23:24:18 +0000 Subject: [PATCH] * klist.c (do_v4_ccache): Call life_to_time() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12746 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/klist/ChangeLog | 4 ++++ src/clients/klist/klist.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/clients/klist/ChangeLog b/src/clients/klist/ChangeLog index ed37b6a36..559ac9f46 100644 --- a/src/clients/klist/ChangeLog +++ b/src/clients/klist/ChangeLog @@ -1,3 +1,7 @@ +2000-10-09 Tom Yu + + * klist.c (do_v4_ccache): Call life_to_time(). + 2000-08-02 Ezra Peisach * klist.c: Compiler warning cleanups by declaring functions as diff --git a/src/clients/klist/klist.c b/src/clients/klist/klist.c index 6f46270fd..c2d37b953 100644 --- a/src/clients/klist/klist.c +++ b/src/clients/klist/klist.c @@ -801,7 +801,7 @@ do_v4_ccache(name) } printtime(c.issue_date); fputs(" ", stdout); - printtime(c.issue_date + ((unsigned char) c.lifetime) * 5 * 60); + printtime(krb_life_to_time(c.issue_date, c.lifetime)); printf(" %s%s%s%s%s\n", c.service, (c.instance[0] ? "." : ""), c.instance, (c.realm[0] ? "@" : ""), c.realm); -- 2.26.2