* g_tkt_svc.c (CredIsExpired): Fix logic bug
authorTom Yu <tlyu@mit.edu>
Sun, 8 Oct 2000 01:31:49 +0000 (01:31 +0000)
committerTom Yu <tlyu@mit.edu>
Sun, 8 Oct 2000 01:31:49 +0000 (01:31 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12734 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb4/ChangeLog
src/lib/krb4/g_tkt_svc.c

index ea576296261b42ea3e71e15377da219261c61ce2..749e81f7e05f6982119c95baad15c21d8b0c85b8 100644 (file)
@@ -1,3 +1,7 @@
+2000-10-07  Tom Yu  <tlyu@mit.edu>
+
+       * g_tkt_svc.c (CredIsExpired): Fix logic bug.
+
 2000-10-06  Tom Yu  <tlyu@mit.edu>
 
        * rd_req.c (krb_rd_req): Call life_to_fime().
index 0ab8e8d508b26d1a90882e29b93e5b6be4bb9b6a..4bb43f8f02b5ead98b773f001ce8e13e67eeb025 100644 (file)
@@ -81,7 +81,8 @@ CredIsExpired( cr )
           everywhere to determine ticket expiration.   */
 
    time = TIME_GMT_UNIXSEC;    
-   return krb_life_to_time(cr->issue_date, lifetime) > time - 2 * CLOCK_SKEW;
+   return time + 2 * CLOCK_SKEW > krb_life_to_time(cr->issue_date,
+                                                  cr->lifetime);
 }