projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
079b24c
)
Whe make_valgrind_happy, initialize dns to 0 before passing to res_ninit (bug #4959)
author
Mark Spencer
<markster@digium.com>
Sun, 14 Aug 2005 02:23:33 +0000
(
02:23
+0000)
committer
Mark Spencer
<markster@digium.com>
Sun, 14 Aug 2005 02:23:33 +0000
(
02:23
+0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6328
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
dns.c
patch
|
blob
|
history
diff --git
a/dns.c
b/dns.c
index
cae804f
..
0341c11
100755
(executable)
--- a/
dns.c
+++ b/
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