commit 9568412e2102ffcfaa6de7425a735e93afd5cf3f
parent 2e76bcf260b223d508ff40b77f2d6a3790eb4be6
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Tue, 12 Aug 2025 02:22:35 +0200
auth_digest: removed unwanted extra step in hash calculation
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mhd2/auth_digest.c b/src/mhd2/auth_digest.c
@@ -227,7 +227,7 @@ simple_hash (size_t data_size,
a = (uint_fast64_t) mhd_ROTR64 ((uint64_t) a, \
(unsigned int) (res >> 58u));
res ^= a;
- if (8 > data_size)
+ if (8 >= data_size)
break;
data_size -= 8;
data += 8;