summaryrefslogtreecommitdiffstats
path: root/ares_destroy.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-02-01 21:23:59 +0100
committerJakub Hrozek <jhrozek@redhat.com>2010-02-19 18:04:37 +0100
commitbe7c4f5806a29298988601f9bac5a4ebab6c000c (patch)
treed6f7a07643b8e8f2509da2b563cb27ca56fe0572 /ares_destroy.c
parent228e2c0a62faaedaf98a9dad10095f0980a07dfc (diff)
downloadc-ares-master.tar.gz
c-ares-master.tar.xz
c-ares-master.zip
Allow the use of IPv6 nameserversHEADmaster
This patch allows the use of IPv6 addresses for nameserves in both /etc/resolv.conf and by using the ares_set_nameservers() API.
Diffstat (limited to 'ares_destroy.c')
-rw-r--r--ares_destroy.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/ares_destroy.c b/ares_destroy.c
index 0044a71..4040971 100644
--- a/ares_destroy.c
+++ b/ares_destroy.c
@@ -67,15 +67,7 @@ void ares_destroy(ares_channel channel)
}
#endif
- if (channel->servers) {
- for (i = 0; i < channel->nservers; i++)
- {
- struct server_state *server = &channel->servers[i];
- ares__close_sockets(channel, server);
- assert(ares__is_list_empty(&(server->queries_to_server)));
- }
- free(channel->servers);
- }
+ ares__free_servers(channel);
if (channel->domains) {
for (i = 0; i < channel->ndomains; i++)