From 0c2085fe0efdd894058e45e7e8f030eb25c3766c Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 11 Nov 1997 01:12:36 +0000 Subject: [PATCH] send_tgs.c (krb5_send_tgs): Don't send a zero endtime; if the requested endtime is zero, set it equal to the TGT endtime. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10271 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 5 +++++ src/lib/krb5/krb/send_tgs.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index cdc7d0772..043f0f748 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +Wed Oct 22 00:29:33 1997 Theodore Y. Ts'o + + * send_tgs.c (krb5_send_tgs): Don't send a zero endtime; if the + requested endtime is zero, set it equal to the TGT endtime. + Mon Oct 6 12:07:19 1997 Ezra Peisach * set_realm.c (krb5_set_principal_realm): Allocate extra byte for diff --git a/src/lib/krb5/krb/send_tgs.c b/src/lib/krb5/krb/send_tgs.c index ac4e27735..3247c8eb5 100644 --- a/src/lib/krb5/krb/send_tgs.c +++ b/src/lib/krb5/krb/send_tgs.c @@ -199,7 +199,8 @@ krb5_send_tgs(context, kdcoptions, timestruct, ktypes, sname, addrs, tgsreq.server = (krb5_principal) sname; tgsreq.from = timestruct->starttime; - tgsreq.till = timestruct->endtime; + tgsreq.till = timestruct->endtime ? timestruct->endtime : + in_cred->times.endtime; tgsreq.rtime = timestruct->renew_till; if ((retval = krb5_timeofday(context, &time_now))) return(retval); -- 2.26.2