commit f8c82eb3700b273cd553f04c19eebd1d21bf2bfb
parent 09137b916825cef36cd9bda52dd7e588fe05aa41
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 28 May 2026 09:41:19 +0200
fix incorrect calculation of value_len
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mhd2/post_parser_funcs.c b/src/mhd2/post_parser_funcs.c
@@ -2888,7 +2888,7 @@ check_post_leftovers_mpart (struct MHD_Connection *restrict c,
not_terminated = true;
add_field = true;
value_pos = mf->f.value_idx;
- value_len = pos - value_len;
+ value_len = pos - value_pos;
break;
case mhd_POST_MPART_ST_DELIM_FOUND:
mhd_assert (0 != mf->f.name_idx);