[asterisk-commits] mmichelson: trunk r112148 - in /trunk: ./ main/dns.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Apr 1 12:23:19 CDT 2008
Author: mmichelson
Date: Tue Apr 1 12:23:19 2008
New Revision: 112148
URL: http://svn.digium.com/view/asterisk?view=rev&rev=112148
Log:
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)
........
Modified:
trunk/ (props changed)
trunk/main/dns.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/main/dns.c
URL: http://svn.digium.com/view/asterisk/trunk/main/dns.c?view=diff&rev=112148&r1=112147&r2=112148
==============================================================================
--- trunk/main/dns.c (original)
+++ trunk/main/dns.c Tue Apr 1 12:23:19 2008
@@ -263,6 +263,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