]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stick-tables: abort startup on stk_ctr pool creation failure
authorWilly Tarreau <w@1wt.eu>
Mon, 26 Jan 2026 10:31:24 +0000 (11:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Jan 2026 10:45:49 +0000 (11:45 +0100)
commite9e4821db52b9e2e1c01921d889d0cca8b8759b5
treedb58c7ecf6c40c840de7feee726fb8e03ee79b95
parent4e7c07736a10ac8e896a1fc8d9f5572f515db282
BUG/MINOR: stick-tables: abort startup on stk_ctr pool creation failure

Since 3.3 with commit 945aa0ea82 ("MINOR: initcalls: Add a new initcall
stage, STG_INIT_2"), stkt_late_init() calls stkt_create_stk_ctr_pool()
but doesn't check its return value, so if the pool creation fails, the
process still starts, which is not correct. This patch adds a check for
the return value to make sure we fail to start in this case. This was
not an issue before 3.3 because the function was called as a post-check
handler which did check for errors in the returned values.
src/stick_table.c