summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/krb
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1997-11-11 01:12:36 +0000
committerTheodore Tso <tytso@mit.edu>1997-11-11 01:12:36 +0000
commit0c2085fe0efdd894058e45e7e8f030eb25c3766c (patch)
tree7528aab12ba3957b596e1c5360e0139a9a73df92 /src/lib/krb5/krb
parent2de5c34126cbb45036bdc2316575017f937d83c5 (diff)
downloadkrb5-0c2085fe0efdd894058e45e7e8f030eb25c3766c.tar.gz
krb5-0c2085fe0efdd894058e45e7e8f030eb25c3766c.tar.xz
krb5-0c2085fe0efdd894058e45e7e8f030eb25c3766c.zip
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
Diffstat (limited to 'src/lib/krb5/krb')
-rw-r--r--src/lib/krb5/krb/ChangeLog5
-rw-r--r--src/lib/krb5/krb/send_tgs.c3
2 files changed, 7 insertions, 1 deletions
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 <tytso@mit.edu>
+
+ * 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 <epeisach@kangaroo.mit.edu>
* 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);