From: Tom Yu Date: Mon, 27 Nov 1995 20:51:53 +0000 (+0000) Subject: * rc_dfl.c (krb5_rc_dfl_init): default lifespan to X-Git-Tag: krb5-1.0-beta6~782 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=483e5f03c9e6c417a500c5fdcb9cd1f893ec345c;p=krb5.git * rc_dfl.c (krb5_rc_dfl_init): default lifespan to context->clockskew in case some app can't get at the internals of the context struct. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7125 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/rcache/ChangeLog b/src/lib/krb5/rcache/ChangeLog index 7177ffc32..0001ac9b9 100644 --- a/src/lib/krb5/rcache/ChangeLog +++ b/src/lib/krb5/rcache/ChangeLog @@ -1,3 +1,9 @@ +Mon Nov 27 14:52:23 1995 Tom Yu + + * rc_dfl.c (krb5_rc_dfl_init): default lifespan to + context->clockskew in case some app can't get at the + internals of the context struct. + Fri Oct 6 22:05:31 1995 Theodore Y. Ts'o * Makefile.in: Remove ##DOS!include of config/windows.in. diff --git a/src/lib/krb5/rcache/rc_dfl.c b/src/lib/krb5/rcache/rc_dfl.c index a6cd76cc1..90766a1bb 100644 --- a/src/lib/krb5/rcache/rc_dfl.c +++ b/src/lib/krb5/rcache/rc_dfl.c @@ -189,7 +189,8 @@ krb5_deltat lifespan; struct dfl_data *t = (struct dfl_data *)id->data; krb5_error_code retval; - t->lifespan = lifespan; + t->lifespan = lifespan ? lifespan : context->clockskew; + /* default to clockskew from the context */ #ifndef NOIOSTUFF if ((retval = krb5_rc_io_creat(context, &t->d,&t->name))) return retval;