MINOR: resolvers: Use a function to remove answers attached to a resolution

resolv_purge_resolution_answer_records() must be used to removed all answers
attached to a resolution. For now, it is only used when a resolution is
released.

(cherry picked from commit 1dec5c793474027ddffbfca3849e5ca4e9e51083)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 656b42714a05e578c0480f1751a065d8e96f8f3a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 67cc9a6dc2d6cdf0686c36178440a6c4236ac5f3)
[cf: Must be backported as far as 2.0 because of recent changes on resolvers]
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 9f6c180c4ee53996a3cda38a3b32b406cebf6b1e)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
2 files changed