This code is dangerous enough that we certainly don't want external code
to ever approach it, let's not export unnecessary functions like this one.
It was made static and a comment was added about its purpose.
(cherry picked from commit
2acc160c05c0c8dc28ecce5941451c916d29bc63)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit
aab7593db39e1083a77ac792723623bd9c402273)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
void **newip, short *newip_sin_family,
struct server *owner);
-void dns_purge_resolution_answer_records(struct dns_resolution *resolution);
int dns_link_resolution(void *requester, int requester_type, int requester_locked);
void dns_unlink_resolution(struct dns_requester *requester, int safe);
void dns_detach_from_resolution_answer_items(struct dns_resolution *res, struct dns_requester *req, int safe);
return res;
}
-void dns_purge_resolution_answer_records(struct dns_resolution *resolution)
+/* deletes and frees all answer_items from the resolution's answer_list */
+static void dns_purge_resolution_answer_records(struct dns_resolution *resolution)
{
struct dns_answer_item *item, *itemback;