Use krb5_timeofday in krb5_cc_get_lifetime()

This commit is contained in:
Nicolas Williams
2015-04-14 10:46:00 -05:00
parent f973a9f397
commit 5f91ef7242

View File

@@ -1705,7 +1705,7 @@ krb5_cc_get_lifetime(krb5_context context, krb5_ccache id, time_t *t)
time_t now, endtime = 0;
*t = 0;
now = time(NULL);
krb5_timeofday(context, &now);
ret = krb5_cc_get_config(context, id, NULL, "start_realm", &config_start_realm);
if (ret == 0) {