]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: improve code when checking server name conflicts
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 23 Feb 2026 09:10:05 +0000 (10:10 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 23 Feb 2026 15:28:41 +0000 (16:28 +0100)
commit05d73aa81c6edd0bd80c49c2e0d5e65ffbc90c2e
tree4c31b2766dcb8ed2f5d9d825587b448d76095455
parentc528824094028b13c26b339bfd8eb4a9ab35a30c
MINOR: proxy: improve code when checking server name conflicts

During proxy_finalize(), a lookup is performed over the servers by name
tree to detect any collision. Only the first conflict for each server
instance is reported to avoid a combinatory explosion with too many
alerts shown.

Previously, this was written using a for loop without any iteration.
Replace this by a simple if statement as this is cleaner.

This should fix github issue #3276.
src/proxy.c