]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cfgparse: detect incorrect overlap of same backend names
authorWilly Tarreau <w@1wt.eu>
Tue, 17 Sep 2024 17:22:28 +0000 (19:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Sep 2024 17:55:00 +0000 (19:55 +0200)
commitc70906c8a1d262194e416c0094e5eba8f30ba7c9
tree4484a0532cfa6bdf6c57ee9ea17f6fccbd7207d0
parent17e52c922b577e1b677098b34e47cd0a85f31e8b
BUG/MINOR: cfgparse: detect incorrect overlap of same backend names

As reported below, it's possible to declare a backend then a proxy with
the same name, because for the proxy we check a frontend capability (the
first one to be tested):

   backend b
   listen b
        bind :8888

Let's check the two capabilities in this case and not just the frontend.

Better not backport this, as there's a risk of breakage of existing
setups that work by accident. It might make sense to report them as
diag warnings though.

Link: https://www.mail-archive.com/haproxy@formilux.org/msg45185.html
src/cfgparse-listen.c