mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 07:01:09 +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;
|
int res, ret = -1;
|
||||||
|
|
||||||
#ifdef HAS_RES_NINIT
|
#ifdef HAS_RES_NINIT
|
||||||
|
#ifdef MAKE_VALGRIND_HAPPY
|
||||||
|
memset(&dnsstate, 0, sizeof(dnsstate));
|
||||||
|
#endif
|
||||||
res_ninit(&dnsstate);
|
res_ninit(&dnsstate);
|
||||||
res = res_nsearch(&dnsstate, dname, class, type, (unsigned char *)answer, sizeof(answer));
|
res = res_nsearch(&dnsstate, dname, class, type, (unsigned char *)answer, sizeof(answer));
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user