BUG/MINOR: resolvers: Consider server to have no IP on DNS resolution error
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 10 Mar 2021 14:39:16 +0000 (15:39 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 16 Mar 2021 08:06:49 +0000 (09:06 +0100)
commite260a5892df52015fef2849766feae60942480a8
tree78c103e7518c597dcd0b332d9457cfe0c78c27cc
parent2e82b139c8cd9bfec9f3ae9a91b485fff99392e0
BUG/MINOR: resolvers: Consider server to have no IP on DNS resolution error

When an error is received for a DNS resolution, for instance a NXDOMAIN
error, the server must be considered to have no address when its status is
updated, not the opposite.

Concretly, because this parameter is not used on error path in
snr_update_srv_status(), there is no impact.

This patch must be backported as far as 1.8.

(cherry picked from commit bd0227c1096ecc9e11da315c399b178b16ad7a9d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/server.c