From e58174285ab6d014af32229682a63f82ac59eddf Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 28 Sep 1990 15:42:07 +0000 Subject: [PATCH] don't specify starttime; that's only used for postdated tickets git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1157 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/kinit/kinit.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/clients/kinit/kinit.c b/src/clients/kinit/kinit.c index 90288d344..7342f1910 100644 --- a/src/clients/kinit/kinit.c +++ b/src/clients/kinit/kinit.c @@ -63,7 +63,8 @@ main(argc, argv) krb5_principal me; krb5_data *server[4]; krb5_creds my_creds; - + krb5_timestamp now; + krb5_init_ets(); if (rindex(argv[0], '/')) @@ -142,11 +143,13 @@ main(argc, argv) com_err (argv[0], code, "when getting my address"); exit(1); } - if (code = krb5_timeofday(&my_creds.times.starttime)) { + if (code = krb5_timeofday(&now)) { com_err(argv[0], code, "while getting time of day"); exit(1); } - my_creds.times.endtime = my_creds.times.starttime + lifetime; + my_creds.times.starttime = 0; /* start timer when request + gets to KDC */ + my_creds.times.endtime = now + lifetime; if (options & KDC_OPT_RENEWABLE) { my_creds.times.renew_till = my_creds.times.starttime + KRB5_RENEWABLE_LIFE; -- 2.26.2