[asterisk-commits] mmichelson: branch 1.4 r112138 - /branches/1.4/main/dns.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Apr 1 12:21:22 CDT 2008
Author: mmichelson
Date: Tue Apr 1 12:21:21 2008
New Revision: 112138
URL: http://svn.digium.com/view/asterisk?view=rev&rev=112138
Log:
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)
Modified:
branches/1.4/main/dns.c
Modified: branches/1.4/main/dns.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/dns.c?view=diff&rev=112138&r1=112137&r2=112138
==============================================================================
--- branches/1.4/main/dns.c (original)
+++ branches/1.4/main/dns.c Tue Apr 1 12:21:21 2008
@@ -255,6 +255,7 @@
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
More information about the asterisk-commits
mailing list