Merged revisions 127663 via svnmerge from
[asterisk/asterisk.git] / main / dns.c
index f6dc407..4884406 100644 (file)
@@ -263,6 +263,7 @@ int ast_search_dns(void *context,
        int res, ret = -1;
 
 #ifdef HAVE_RES_NINIT
+       memset(&dnsstate, 0, sizeof(dnsstate));
        res_ninit(&dnsstate);
        res = res_nsearch(&dnsstate, dname, class, type, answer, sizeof(answer));
 #else