From 01a5986cbf7afdba2b805bdd16893b6b52c87f42 Mon Sep 17 00:00:00 2001 From: Justin Anderson Date: Sun, 28 Sep 2008 03:59:55 +0000 Subject: [PATCH] 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 --- src/kim/lib/kim_credential.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.26.2