]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cfgparse: detect another uncaught case of duplicate defaults
authorWilly Tarreau <w@1wt.eu>
Fri, 20 Sep 2024 12:28:15 +0000 (14:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 Sep 2024 13:58:10 +0000 (15:58 +0200)
commitcb4c236facd3b859a946f3c1bbfed691b63e3463
tree92addffd1fda529da3e08d6cff86bd36b6ef417a
parent5b221d1e415b80e7ff1a8a8ad8740a7282858583
BUG/MINOR: cfgparse: detect another uncaught case of duplicate defaults

The following sequence was not properly caught:

   defaults def
   backend back from def
   defaults def

But this one was:

   defaults def
   defaults def
   backend back from def

Let's check when defaults are declared that they're not already
referenced.

Better not backport this. While it will catch broken configs (possibly
some with backends pasted after the wrong defaults), these might still
work by accident. It may be reported as a diag warning though.
src/cfgparse-listen.c