projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7931ce6
)
* g_tkt_svc.c (CredIsExpired): Fix logic bug
author
Tom Yu
<tlyu@mit.edu>
Sun, 8 Oct 2000 01:31:49 +0000
(
01:31
+0000)
committer
Tom 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
patch
|
blob
|
history
src/lib/krb4/g_tkt_svc.c
patch
|
blob
|
history
diff --git
a/src/lib/krb4/ChangeLog
b/src/lib/krb4/ChangeLog
index ea576296261b42ea3e71e15377da219261c61ce2..749e81f7e05f6982119c95baad15c21d8b0c85b8 100644
(file)
--- a/
src/lib/krb4/ChangeLog
+++ b/
src/lib/krb4/ChangeLog
@@
-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().
diff --git
a/src/lib/krb4/g_tkt_svc.c
b/src/lib/krb4/g_tkt_svc.c
index 0ab8e8d508b26d1a90882e29b93e5b6be4bb9b6a..4bb43f8f02b5ead98b773f001ce8e13e67eeb025 100644
(file)
--- 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);
}