]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: config: insufficient syntax check of the global "maxconn" value
authorThierry Fournier <tfournier@arpalert.org>
Sat, 1 Oct 2022 08:06:59 +0000 (10:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 3 Oct 2022 12:30:08 +0000 (14:30 +0200)
commit3d1c334d4468dc57926e285eb8c8d263eff8acac
treeb1bdaf3a14a90c720b2e69e87952dac0ee2555b8
parent852234848241f61a976f8856123a34a3c19275ba
BUG/MINOR: config: insufficient syntax check of the global "maxconn" value

The maxconn value is decoded using atol(), so values like "3k" are
rightly converter as interger 3, while the user wants 3000.

This patch fixes this behavior by reporting a parsing error.

This patch could be backported on all maintained version, but it
could break some configuration. The bug is really minor, I recommend
to not backport, or backport a patch which only throws a warning in
place of a fatal error.
src/cfgparse-global.c