aboutsummaryrefslogtreecommitdiffstats
path: root/main/dns.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-01 17:25:05 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-04-01 17:25:05 +0000
commit741a46919d83b113936a85f94959a76b2e85a19e (patch)
treeaab5daa6fb84e0e6f77b8f2b2d462c836fa4ea79 /main/dns.c
parenta99d42216967b0506e6e27dd545a701e43d280ab (diff)
Merged revisions 112148 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r112148 | mmichelson | 2008-04-01 12:23:19 -0500 (Tue, 01 Apr 2008) | 18 lines Merged revisions 112138 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r112138 | mmichelson | 2008-04-01 12:21:21 -0500 (Tue, 01 Apr 2008) | 10 lines Initialize the __res_state structure used for dns purposes to all 0's prior to using it. This is due to valgrind's complaints on issue #12284 as well as an excerpt found in "Description" portion of the online man page found here: http://www.iti.cs.tu-bs.de/cgi-bin/UNIXhelp/man-cgi?res_nquery+3RESOLV (pertains to issue #12284 but does not necessarily close it) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@112157 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/dns.c')
-rw-r--r--main/dns.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/dns.c b/main/dns.c
index f6dc407dd..4884406cb 100644
--- a/main/dns.c
+++ b/main/dns.c
@@ -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