]> git.kaiwu.me - haproxy.git/commit
MINOR: pools: reject creation of pools containing invalid chars in their name
authorWilly Tarreau <w@1wt.eu>
Mon, 8 Jun 2026 06:54:37 +0000 (08:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 8 Jun 2026 06:54:37 +0000 (08:54 +0200)
commitb9fa07bd205ddd993c84e29d5b0324a84d032578
tree3aeb0f9851bee473e9dd3ceb4bacc9fb6ee4aef2
parent172306c308bcfdbc32e3b7ad2927814c77a58fd3
MINOR: pools: reject creation of pools containing invalid chars in their name

In order to preventively avoid issues that complicate debugging, let's
report to developers early if a pool name is not acceptable. This patch
does it in create_pool_from_reg() which catches both direct and declared
registrations. Aside the previous case, this didn't catch any other
occurrence.
src/pool.c