Use krb5_timeofday in krb5_cc_get_lifetime()
This commit is contained in:
@@ -1705,7 +1705,7 @@ krb5_cc_get_lifetime(krb5_context context, krb5_ccache id, time_t *t)
|
|||||||
time_t now, endtime = 0;
|
time_t now, endtime = 0;
|
||||||
|
|
||||||
*t = 0;
|
*t = 0;
|
||||||
now = time(NULL);
|
krb5_timeofday(context, &now);
|
||||||
|
|
||||||
ret = krb5_cc_get_config(context, id, NULL, "start_realm", &config_start_realm);
|
ret = krb5_cc_get_config(context, id, NULL, "start_realm", &config_start_realm);
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
|
Reference in New Issue
Block a user