Index: crypto/heimdal/lib/krb5/rd_cred.c =================================================================== --- crypto/heimdal/lib/krb5/rd_cred.c +++ crypto/heimdal/lib/krb5/rd_cred.c @@ -222,7 +222,7 @@ if (enc_krb_cred_part.timestamp == NULL || enc_krb_cred_part.usec == NULL || - abs(*enc_krb_cred_part.timestamp - sec) + labs(*enc_krb_cred_part.timestamp - sec) > context->max_skew) { krb5_clear_error_message (context); ret = KRB5KRB_AP_ERR_SKEW; Index: crypto/heimdal/lib/krb5/rd_priv.c =================================================================== --- crypto/heimdal/lib/krb5/rd_priv.c +++ crypto/heimdal/lib/krb5/rd_priv.c @@ -136,7 +136,7 @@ krb5_timeofday (context, &sec); if (part.timestamp == NULL || part.usec == NULL || - abs(*part.timestamp - sec) > context->max_skew) { + labs(*part.timestamp - sec) > context->max_skew) { krb5_clear_error_message (context); ret = KRB5KRB_AP_ERR_SKEW; goto failure_part; Index: crypto/heimdal/lib/krb5/rd_req.c =================================================================== --- crypto/heimdal/lib/krb5/rd_req.c +++ crypto/heimdal/lib/krb5/rd_req.c @@ -441,7 +441,7 @@ krb5_timeofday (context, &now); - if (abs(ac->authenticator->ctime - now) > context->max_skew) { + if (labs(ac->authenticator->ctime - now) > context->max_skew) { ret = KRB5KRB_AP_ERR_SKEW; krb5_clear_error_message (context); goto out; Index: crypto/heimdal/lib/krb5/rd_safe.c =================================================================== --- crypto/heimdal/lib/krb5/rd_safe.c +++ crypto/heimdal/lib/krb5/rd_safe.c @@ -159,7 +159,7 @@ if (safe.safe_body.timestamp == NULL || safe.safe_body.usec == NULL || - abs(*safe.safe_body.timestamp - sec) > context->max_skew) { + labs(*safe.safe_body.timestamp - sec) > context->max_skew) { ret = KRB5KRB_AP_ERR_SKEW; krb5_clear_error_message (context); goto failure; Index: crypto/heimdal/lib/krb5/ticket.c =================================================================== --- crypto/heimdal/lib/krb5/ticket.c +++ crypto/heimdal/lib/krb5/ticket.c @@ -776,11 +776,11 @@ tmp_time = rep->enc_part.authtime; if (creds->times.starttime == 0 - && abs(tmp_time - sec_now) > context->max_skew) { + && labs(tmp_time - sec_now) > context->max_skew) { ret = KRB5KRB_AP_ERR_SKEW; krb5_set_error_message (context, ret, N_("time skew (%d) larger than max (%d)", ""), - abs(tmp_time - sec_now), + labs(tmp_time - sec_now), (int)context->max_skew); goto out; }