diff --git a/main/dns.c b/main/dns.c index d922435610..3456d9b9ee 100644 --- a/main/dns.c +++ b/main/dns.c @@ -229,7 +229,7 @@ int ast_search_dns(void *context, ret = 1; } #ifdef HAVE_RES_NINIT -#if HAVE_RES_NDESTROY +#ifdef HAVE_RES_NDESTROY res_ndestroy(&dnsstate); #else res_nclose(&dnsstate);