]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: config/dns: properly fail on duplicate nameserver name detection
authorWilly Tarreau <w@1wt.eu>
Thu, 14 May 2026 23:01:36 +0000 (23:01 +0000)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 May 2026 13:04:00 +0000 (15:04 +0200)
commitbcb4f9cd4a2a779e4b289bf218ee35b84ccef760
tree43286ac1692152489c7081cfa95e6d00a565161a
parentda4a4976d79f47e57526c656c4f8a3100e2d34a8
BUG/MINOR: config/dns: properly fail on duplicate nameserver name detection

In cfg_parse_resolvers(), two duplicate name checks set err_code but lacked
'goto out', allowing execution to fall through and create the duplicate entry.
This would result in new resolvers and nameservers to be created after the
error was displayed, and a leak of the previous one. It's mostly harmless
since we're exiting after such errors. This can be backported if desired.
src/resolvers.c