]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: resolvers: Reset address for unresolved servers
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 23 Feb 2021 11:33:17 +0000 (12:33 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Feb 2021 20:58:46 +0000 (21:58 +0100)
commitd127ffa9f439a4eb05455f371191694f22dd7a5b
treed1190f3260c970350064dc0dc0a7f5bcd56389c3
parent52d4d3010991e851b8e9e4d9f923ad1f74d30d69
BUG/MEDIUM: resolvers: Reset address for unresolved servers

If the DNS resolution failed for a server, its ip address must be
removed. Otherwise, the server is stopped but keeps its ip. This may be
confusing when the servers state are retrieved on the CLI and it may lead to
undefined behavior if HAproxy is configured to load its servers state from a
file.

This patch should be backported as far as 2.0.
src/server.c