From: Christopher Faulet Date: Fri, 30 Jan 2026 10:10:12 +0000 (+0100) Subject: BUG/MINOR: config: Check buffer pool creation for failures X-Git-Tag: v3.4-dev5~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ad9def1265c50c3a1ec8270a2c10451f38dd2c7;p=thirdparty%2Fhaproxy.git BUG/MINOR: config: Check buffer pool creation for failures The call to init_buffer() during the worker startup may fail. In that case, an error message is displayed but the error was not properly handled. So let's add the proper check and exit on error. --- diff --git a/src/haproxy.c b/src/haproxy.c index bdad75503..4edd66da1 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -2347,7 +2347,8 @@ static void step_init_2(int argc, char** argv) deinit_and_exit(0); /* now we know the buffer size, we can initialize the channels and buffers */ - init_buffer(); + if (!init_buffer()) + exit(1); // error already reported list_for_each_entry(pcf, &post_check_list, list) { err_code |= pcf->fct();