summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-07-25 16:07:22 -0400
committerNick Mathewson <nickm@torproject.org>2012-07-25 16:07:22 -0400
commit13525c50ebb81c38d655192990425b2610b1e9aa (patch)
tree4883c791b856b4c8aa60e2be9f09c76bc2c9b1d0
parent6fdbf3a2bcf4d56238a2792361345b9f90449adc (diff)
downloadlibevent-13525c50ebb81c38d655192990425b2610b1e9aa.tar.gz
Fix another possible uninitialized read in dns regression tests. Found by coverity.
-rw-r--r--test/regress_dns.c6
1 files 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. */