From: dtucker@openbsd.org Date: Sat, 24 May 2025 02:33:33 +0000 (+0000) Subject: upstream: Fix compile error on 32bit platforms. X-Git-Tag: V_10_1_P1~251 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f5cd14e81fa29b4924959cb2e1f9c206aae2d502;p=thirdparty%2Fopenssh-portable.git upstream: Fix compile error on 32bit platforms. Spotted by & ok tb@ OpenBSD-Commit-ID: cbcf518247886f3c7518fc54cb3bd911ffc69db7 --- diff --git a/umac.c b/umac.c index 5bf2e43a6..94c5e817c 100644 --- a/umac.c +++ b/umac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: umac.c,v 1.25 2025/05/23 11:54:50 dtucker Exp $ */ +/* $OpenBSD: umac.c,v 1.26 2025/05/24 02:33:33 dtucker Exp $ */ /* ----------------------------------------------------------------------- * * umac.c -- C Implementation UMAC Message Authentication @@ -1092,7 +1092,7 @@ static int uhash_update(uhash_ctx_t ctx, const u_char *input, long len) } /* pass remaining < L1_KEY_LEN bytes of input data to NH */ - if (len > 0 && len <= UINT32_MAX) { + if (len > 0 && (unsigned long)len <= UINT32_MAX) { nh_update(&ctx->hash, (const UINT8 *)input, len); ctx->msg_len += len; }