summaryrefslogtreecommitdiff
path: root/lib/libc/asr
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2012-07-29 20:33:22 +0000
committerEric Faurot <eric@cvs.openbsd.org>2012-07-29 20:33:22 +0000
commit91dcfda0a2fa039a7ad681263814c3000107a979 (patch)
treebbede18c0b45865adfe90a9d2349e4b2a8aa8f28 /lib/libc/asr
parent8ff9aa71a6f5ed3de42c60861b69d5fb9ff5df4a (diff)
must be zero'd (found by regress)
Diffstat (limited to 'lib/libc/asr')
-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;