From: Justin Anderson Date: Sun, 28 Sep 2008 03:59:55 +0000 (+0000) Subject: Make kim_credential_get_options set correct renewal lifetime X-Git-Tag: krb5-1.7-alpha1~403 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=01a5986cbf7afdba2b805bdd16893b6b52c87f42;p=krb5.git Make kim_credential_get_options set correct renewal lifetime ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20768 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kim/lib/kim_credential.c b/src/kim/lib/kim_credential.c index c1d48e1b7..8c7a347df 100644 --- a/src/kim/lib/kim_credential.c +++ b/src/kim/lib/kim_credential.c @@ -843,7 +843,10 @@ kim_error kim_credential_get_options (kim_credential in_credential, if (!err) { kim_lifetime rlifetime = (creds->ticket_flags & TKT_FLG_RENEWABLE ? - creds->times.renew_till : 0); + creds->times.renew_till - + (creds->times.starttime ? + creds->times.starttime : + creds->times.authtime) : 0); err = kim_options_set_renewal_lifetime (options, rlifetime); }