mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
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
This commit is contained in:
3
dns.c
3
dns.c
@@ -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
|
||||
|
Reference in New Issue
Block a user