paivana

HTTP paywall reverse proxy
Log | Files | Refs | Submodules | README | LICENSE

commit d3aca7a024fd5b1fe30b82fc618652a37fe2b8a8
parent 88ce3c98456dc44cec796883c996411795ed58c1
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  2 Aug 2026 22:54:14 +0200

use constant-time cmp on authentication data

Diffstat:
Msrc/backend/paivana-httpd_cookie.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/paivana-httpd_cookie.c b/src/backend/paivana-httpd_cookie.c @@ -134,8 +134,8 @@ PAIVANA_HTTPD_check_cookie (const char *cookie, ca, &h); if (0 == - GNUNET_memcmp (&c, - &h)) + GNUNET_memcmp_priv (&c, + &h)) return true; GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Cookie hash does not match!\n");