summaryrefslogtreecommitdiffstats
path: root/lib/libc/asr/asr_resolver.c
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2012-07-29 20:33:21 +0000
committereric <eric@openbsd.org>2012-07-29 20:33:21 +0000
commit8091b64d0c4332552e0f7fb3615666711ca30c73 (patch)
treedf530ea52bcf63f41ea1d49fd880b10100820cfa /lib/libc/asr/asr_resolver.c
parentreset the session if no RCPT was accepted for the batch. (diff)
downloadwireguard-openbsd-8091b64d0c4332552e0f7fb3615666711ca30c73.tar.xz
wireguard-openbsd-8091b64d0c4332552e0f7fb3615666711ca30c73.zip
must be zero'd (found by regress)
Diffstat (limited to 'lib/libc/asr/asr_resolver.c')
-rw-r--r--lib/libc/asr/asr_resolver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/asr/asr_resolver.c b/lib/libc/asr/asr_resolver.c
index a44a9735327..6afd10a8d80 100644
--- a/lib/libc/asr/asr_resolver.c
+++ b/lib/libc/asr/asr_resolver.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asr_resolver.c,v 1.4 2012/07/11 16:49:12 eric Exp $ */
+/* $OpenBSD: asr_resolver.c,v 1.5 2012/07/29 20:33:21 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -169,6 +169,7 @@ res_mkquery(int op, const char *dname, int class, int type,
ac = asr_use_resolver(NULL);
+ memset(&h, 0, sizeof h);
h.id = res_randomid();
if (ac->ac_options & RES_RECURSE)
h.flags |= RD_MASK;