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:
Luke Howard
2021-08-09 14:48:04 +10:00
parent 57a1a66348
commit f538f0e5c2
6 changed files with 8 additions and 8 deletions

View File

@@ -222,7 +222,7 @@ krb5_rd_cred(krb5_context context,
if (enc_krb_cred_part.timestamp == NULL ||
enc_krb_cred_part.usec == NULL ||
labs(*enc_krb_cred_part.timestamp - sec)
krb5_time_abs(*enc_krb_cred_part.timestamp, sec)
> context->max_skew) {
krb5_clear_error_message (context);
ret = KRB5KRB_AP_ERR_SKEW;