Skip to content
Snippets Groups Projects
Commit f448fd77 authored by Mark Spencer's avatar Mark Spencer
Browse files

Whe make_valgrind_happy, initialize dns to 0 before passing to res_ninit (bug #4959)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 079b24c5
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,9 @@ int ast_search_dns(void *context,
int res, ret = -1;
#ifdef HAS_RES_NINIT
#ifdef MAKE_VALGRIND_HAPPY
memset(&dnsstate, 0, sizeof(dnsstate));
#endif
res_ninit(&dnsstate);
res = res_nsearch(&dnsstate, dname, class, type, (unsigned char *)answer, sizeof(answer));
#else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment