aboutsummaryrefslogtreecommitdiffstats
path: root/lib/krb5/rd_safe.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/krb5/rd_safe.c')
-rw-r--r--lib/krb5/rd_safe.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/krb5/rd_safe.c b/lib/krb5/rd_safe.c
index e62906b1f723..cfe1e9829c9c 100644
--- a/lib/krb5/rd_safe.c
+++ b/lib/krb5/rd_safe.c
@@ -159,7 +159,7 @@ krb5_rd_safe(krb5_context context,
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;
@@ -191,8 +191,7 @@ krb5_rd_safe(krb5_context context,
outbuf->length = safe.safe_body.user_data.length;
outbuf->data = malloc(outbuf->length);
if (outbuf->data == NULL && outbuf->length != 0) {
- ret = ENOMEM;
- krb5_set_error_message(context, ret, N_("malloc: out of memory", ""));
+ ret = krb5_enomem(context);
krb5_data_zero(outbuf);
goto failure;
}