]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cfgparse-listen: update err_code for fatal error on proxy directive
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 7 Aug 2025 10:45:58 +0000 (12:45 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 7 Aug 2025 20:26:42 +0000 (22:26 +0200)
commit833158f9e0f4dad3502a7b7d7fbadb97e5a6c6dc
tree1ffbbf486fd1c419e4d69c8f212f7cf94bb161bc
parent525750e1356a21f55cc3bb50e802b0a13b58daa5
BUG/MINOR: cfgparse-listen: update err_code for fatal error on proxy directive

When improper arguments are provided on proxy directive (listen,
frontend or backend), such alert may be emitted:

  "please use the 'bind' keyword for listening addresses"

This was introduced in 6e62fb6405 ("MEDIUM: cfgparse: check section
maximum number of arguments"). However, despite the error being reported
as alert, the err_code isn't updated accordingly, which could make the
upper parser think there was no error, while it isn't the case.

In practise since the proxy directive is ignored following proxy related
directives should raise errors, so this didn't cause much harm, yet
better fix that.

It could be backported to all stable versions.
src/cfgparse-listen.c