set renew-life to some sane value

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10202 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2001-06-29 16:47:01 +00:00
parent 46ac306d98
commit 6d909c2713

View File

@@ -96,8 +96,10 @@ init_cred (krb5_context context,
tmp = 10 * 60 * 60;
cred->times.endtime = now + tmp;
if (options->flags & KRB5_GET_INIT_CREDS_OPT_RENEW_LIFE)
cred->times.renew_till = tmp;
if ((options->flags & KRB5_GET_INIT_CREDS_OPT_RENEW_LIFE) &&
options->renew_life > 0) {
cred->times.renew_till = now + options->renew_life;
}
if (in_tkt_service) {
krb5_realm server_realm;