diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2001-04-14 03:27:43 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2001-04-14 03:27:43 +0000 |
| commit | 3cbdd45065a9381de6c2cacea7c148b968bf72e3 (patch) | |
| tree | b86c93cd9e87e524dc0582ce208b0bf9127c16c1 /src/lib | |
| parent | d31b30a6acb1aa6fa8f2f918b56bec332509d72b (diff) | |
| download | krb5-3cbdd45065a9381de6c2cacea7c148b968bf72e3.tar.gz krb5-3cbdd45065a9381de6c2cacea7c148b968bf72e3.tar.xz krb5-3cbdd45065a9381de6c2cacea7c148b968bf72e3.zip | |
* g_tkt_svc.c (CredIsExpired): Don't use a variable named "time"
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13179 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/krb4/ChangeLog | 4 | ||||
| -rw-r--r-- | src/lib/krb4/g_tkt_svc.c | 18 |
2 files changed, 13 insertions, 9 deletions
diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog index b9927351ec..d91b33d526 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -1,3 +1,7 @@ +2001-04-13 Ken Raeburn <raeburn@mit.edu> + + * g_tkt_svc.c (CredIsExpired): Don't use a variable named "time". + 2001-04-13 Danilo Almeida <dalmeida@mit.edu> * memcache.h: Don't use macro PROTOTYPE. diff --git a/src/lib/krb4/g_tkt_svc.c b/src/lib/krb4/g_tkt_svc.c index 4bb43f8f02..cbe74a2f22 100644 --- a/src/lib/krb4/g_tkt_svc.c +++ b/src/lib/krb4/g_tkt_svc.c @@ -71,17 +71,17 @@ static int CredIsExpired( cr ) CREDENTIALS *cr; { - KRB4_32 time; + KRB4_32 now; - /* This routine is for use with clients only in order to determine if a credential - is still good - Note: twice CLOCK_SKEW was added to age of ticket so that we could - be more sure that the ticket was good. - FIXME: I think this is a bug -- should use the same algorithm - everywhere to determine ticket expiration. */ + /* This routine is for use with clients only in order to determine + if a credential is still good. + Note: twice CLOCK_SKEW was added to age of ticket so that we could + be more sure that the ticket was good. + FIXME: I think this is a bug -- should use the same algorithm + everywhere to determine ticket expiration. */ - time = TIME_GMT_UNIXSEC; - return time + 2 * CLOCK_SKEW > krb_life_to_time(cr->issue_date, + now = TIME_GMT_UNIXSEC; + return now + 2 * CLOCK_SKEW > krb_life_to_time(cr->issue_date, cr->lifetime); } |
