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 bb7827226..d92243561 100644 --- a/main/dns.c +++ b/main/dns.c @@ -229,7 +229,11 @@ int ast_search_dns(void *context, ret = 1; } #ifdef HAVE_RES_NINIT +#if HAVE_RES_NDESTROY + res_ndestroy(&dnsstate); +#else res_nclose(&dnsstate); +#endif #else #ifndef __APPLE__ res_close(); |