commit 681d7fca7396dde33ba51a4ce92c78d19b65d8cd
parent ad0e5f4059bb076818c107abdd649781ff2beadf
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 31 May 2026 00:18:34 +0200
fix nonce stale check: smaller 64 can work
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mhd2/auth_digest.c b/src/mhd2/auth_digest.c
@@ -2269,7 +2269,7 @@ check_nonce_nc (struct MHD_Daemon *restrict d,
else /* (nonce_slot->max_recvd_nc > nc) */
{
/* Out-of-order 'nc' value. Check whether was used before */
- if (64 <= nonce_slot->max_recvd_nc - nc)
+ if (64 >= nonce_slot->max_recvd_nc - nc)
{
if (0 ==
((UINT64_C (1) << (nonce_slot->max_recvd_nc - nc - 1))