krb5: use new krb5_time_abs() function
From Apple Heimdal-597.121.1: replace calls to labs() with krb5_time_abs()
This commit is contained in:
@@ -850,11 +850,11 @@ _krb5_extract_ticket(krb5_context context,
|
||||
tmp_time = rep->enc_part.authtime;
|
||||
|
||||
if (creds->times.starttime == 0
|
||||
&& labs(tmp_time - sec_now) > context->max_skew) {
|
||||
&& krb5_time_abs(tmp_time, sec_now) > context->max_skew) {
|
||||
ret = KRB5KRB_AP_ERR_SKEW;
|
||||
krb5_set_error_message (context, ret,
|
||||
N_("time skew (%ld) larger than max (%ld)", ""),
|
||||
labs(tmp_time - sec_now),
|
||||
krb5_time_abs(tmp_time, sec_now),
|
||||
(long)context->max_skew);
|
||||
goto out;
|
||||
}
|
||||
|
Reference in New Issue
Block a user