]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: config: fix arg number reported on empty arg warning
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 4 Jun 2025 13:36:13 +0000 (15:36 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Jun 2025 15:03:02 +0000 (17:03 +0200)
commit0cdf5297202137338e7c6f0290f57b857df887c0
tree9817d5f30b874175ec8fcdb48931cb28e0ff0f42
parent5f1fad169063e3ff5c1b41bc387cb9e7a1070320
BUG/MINOR: config: fix arg number reported on empty arg warning

If an empty argument is used in configuration, for example due to an
undefined environment variable, the rest of the line is not parsed. As
such, a warning is emitted to report this.

The warning was not totally correct as it reported the wrong argument
index. Fix this by this patch. Note that there is still an issue with
the "^" indicator, but this is not as easy to fix yet.

This is related to github issue #2995.

This should be backported up to 3.2.
src/cfgparse.c