]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Fix compile error on 32bit platforms.
authordtucker@openbsd.org <dtucker@openbsd.org>
Sat, 24 May 2025 02:33:33 +0000 (02:33 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Sat, 24 May 2025 04:03:04 +0000 (14:03 +1000)
Spotted by & ok tb@

OpenBSD-Commit-ID: cbcf518247886f3c7518fc54cb3bd911ffc69db7

umac.c

diff --git a/umac.c b/umac.c
index 5bf2e43a66faeb6a09198a7588c53f3aefa5573c..94c5e817c76df24edb7abf734423f449fb173db0 100644 (file)
--- 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;
          }