diff options
Diffstat (limited to 'main/dns.c')
-rw-r--r-- | main/dns.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/dns.c b/main/dns.c index 3599de2c5..efb2e4475 100644 --- a/main/dns.c +++ b/main/dns.c @@ -216,7 +216,11 @@ int ast_search_dns(void *context, ret = 1; } #if HAVE_RES_NINIT +#if HAVE_RES_NDESTROY + res_ndestroy(&dnsstate); +#else res_nclose(&dnsstate); +#endif #else #ifndef __APPLE__ res_close(); |