From 13525c50ebb81c38d655192990425b2610b1e9aa Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 25 Jul 2012 16:07:22 -0400 Subject: [PATCH] Fix another possible uninitialized read in dns regression tests. Found by coverity. --- test/regress_dns.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/regress_dns.c b/test/regress_dns.c index 60f59956..8f853253 100644 --- a/test/regress_dns.c +++ b/test/regress_dns.c @@ -1219,12 +1219,12 @@ test_getaddrinfo_async(void *arg) /* for localhost */ evdns_base_load_hosts(dns_base, NULL); - tt_assert(! evdns_base_set_option(dns_base, "timeout", "0.3")); - tt_assert(! evdns_base_set_option(dns_base, "getaddrinfo-allow-skew", "0.2")); - memset(a_out, 0, sizeof(a_out)); memset(&local_outcome, 0, sizeof(local_outcome)); + tt_assert(! evdns_base_set_option(dns_base, "timeout", "0.3")); + tt_assert(! evdns_base_set_option(dns_base, "getaddrinfo-allow-skew", "0.2")); + n_gai_results_pending = 10000; /* don't think about exiting yet. */ /* 1. Try some cases that will never hit the asynchronous resolver. */