From: Tom Yu Date: Sun, 8 Oct 2000 01:31:49 +0000 (+0000) Subject: * g_tkt_svc.c (CredIsExpired): Fix logic bug X-Git-Tag: krb5-1.3-alpha1~1850 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b8949df7ce52204e8e9e73e972e34eb4c94361f1;p=krb5.git * g_tkt_svc.c (CredIsExpired): Fix logic bug git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12734 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog index ea5762962..749e81f7e 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -1,3 +1,7 @@ +2000-10-07 Tom Yu + + * g_tkt_svc.c (CredIsExpired): Fix logic bug. + 2000-10-06 Tom Yu * rd_req.c (krb_rd_req): Call life_to_fime(). diff --git a/src/lib/krb4/g_tkt_svc.c b/src/lib/krb4/g_tkt_svc.c index 0ab8e8d50..4bb43f8f0 100644 --- a/src/lib/krb4/g_tkt_svc.c +++ b/src/lib/krb4/g_tkt_svc.c @@ -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); }