MINOR: resolvers: Clean server in a dedicated function when removing a SRV item
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 15 Jun 2021 14:08:48 +0000 (16:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 6 Jul 2021 16:14:20 +0000 (18:14 +0200)
commitcab96e1d0b21618f53ccc5e4d5e6abdc66d2d208
tree0eb2de2e0222a1cc22447fd3c96ede38b586b0a6
parented13e2ee7751b3748f873b40b3368d4fbeb497c7
MINOR: resolvers: Clean server in a dedicated function when removing a SRV item

A dedicated function is now used to clean up servers when a SRV item becomes
obsolete or when a requester is removed from a resolution. This patch is
mandatory to fix a bug.

(cherry picked from commit 11c6c396560107ac892a553bfa0dada222823b1c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 5f8ccff67f98efdf8b3e6cb2c02593e4b4aa5b7e)
[cf: Changes applied in src/dns.c instead of src/resolvers.c]
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/dns.c