summaryrefslogtreecommitdiffstats
path: root/src/kim
diff options
context:
space:
mode:
authorJustin Anderson <jander@mit.edu>2008-09-28 03:59:55 +0000
committerJustin Anderson <jander@mit.edu>2008-09-28 03:59:55 +0000
commit01a5986cbf7afdba2b805bdd16893b6b52c87f42 (patch)
tree9a28ef6f9b9a2a408989e30858dfcfdaa0af43ee /src/kim
parente1aaae9b8dfeabdc0626078dea4463669ec50011 (diff)
downloadkrb5-01a5986cbf7afdba2b805bdd16893b6b52c87f42.tar.gz
krb5-01a5986cbf7afdba2b805bdd16893b6b52c87f42.tar.xz
krb5-01a5986cbf7afdba2b805bdd16893b6b52c87f42.zip
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
Diffstat (limited to 'src/kim')
-rw-r--r--src/kim/lib/kim_credential.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kim/lib/kim_credential.c b/src/kim/lib/kim_credential.c
index c1d48e1b7a..8c7a347dfb 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);
}