* klist.c (do_v4_ccache): Call life_to_time()
authorTom Yu <tlyu@mit.edu>
Mon, 9 Oct 2000 23:24:18 +0000 (23:24 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 9 Oct 2000 23:24:18 +0000 (23:24 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12746 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/klist/ChangeLog
src/clients/klist/klist.c

index ed37b6a36d4bdfd6746be3e7299c329fbd202db9..559ac9f46eac538e4080875a12e1e72677d29568 100644 (file)
@@ -1,3 +1,7 @@
+2000-10-09  Tom Yu  <tlyu@mit.edu>
+
+       * klist.c (do_v4_ccache): Call life_to_time().
+
 2000-08-02  Ezra Peisach  <epeisach@mit.edu>
 
        * klist.c: Compiler warning cleanups by declaring functions as
index 6f46270fd4f4529d1a9f4e98901ed8373ffc522e..c2d37b9539aa867303e37301d27b50b9f253cb91 100644 (file)
@@ -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);