diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-14 02:23:33 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-14 02:23:33 +0000 |
commit | d21c9873457724fc3fe72b72102d35c290b890de (patch) | |
tree | 04ef12ef86f73f0239f6f5eca9d212a49cd7c677 /dns.c | |
parent | 3b61ac0907e8aba0cf76f9e70a3dd3e5f1a9b262 (diff) |
Whe make_valgrind_happy, initialize dns to 0 before passing to res_ninit (bug #4959)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6328 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'dns.c')
-rwxr-xr-x | dns.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |