commit 4f008e59e8d99d2024cd5b0a39f9335f8dc7b2f3
parent 73f79e406caa9c60f096f6fbcc3d513afa4ebfd4
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Sat, 6 Sep 2025 16:42:03 +0200
request_auth_get: fixed wrong check resulted in suboptimal processing
Reported by OSTIF.
https://bugs.gnunet.org/view.php?id=10354
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mhd2/request_auth_get.c b/src/mhd2/request_auth_get.c
@@ -115,7 +115,7 @@ mhd_request_get_auth_header_value (struct MHD_Request *restrict request,
continue;
if (MHD_VK_HEADER != f->field.kind)
continue;
- if (prefix_len > f->field.nv.name.len)
+ if (prefix_len > f->field.nv.value.len)
continue;
if (! mhd_str_equal_caseless_bin_n (hdr_name.cstr,
f->field.nv.name.cstr,