commit 1c01ab7916580f854f907ba368ca91b8b1dba633
parent 10574ede9dc46eac3ff97fe514c1bb1832537fd7
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Sat, 6 Sep 2025 16:37:49 +0200
mempool_funcs: fixed pool allocation when app sets large pool size
Reported by OSTIF.
https://bugs.gnunet.org/view.php?id=10296
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/mhd2/mempool_funcs.c b/src/mhd2/mempool_funcs.c
@@ -351,11 +351,10 @@ mhd_pool_create (size_t max,
PAGE_READWRITE);
# endif /* ! mhd_MAP_ANONYMOUS */
}
-#else /* !mhd_USE_LARGE_ALLOCS */
if (mhd_MAP_FAILED != pool->memory)
pool->is_large_alloc = true;
else
-#endif /* !mhd_USE_LARGE_ALLOCS*/
+#endif /* mhd_USE_LARGE_ALLOCS */
if (! 0)
{
alloc_size = mhd_ROUND_TO_ALIGN (max);