diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-02-01 21:23:59 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2010-02-19 18:04:37 +0100 |
commit | be7c4f5806a29298988601f9bac5a4ebab6c000c (patch) | |
tree | d6f7a07643b8e8f2509da2b563cb27ca56fe0572 /ares_destroy.c | |
parent | 228e2c0a62faaedaf98a9dad10095f0980a07dfc (diff) | |
download | c-ares-master.tar.gz c-ares-master.tar.xz c-ares-master.zip |
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.c | 10 |
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++) |