Fix another possible uninitialized read in dns regression tests. Found by coverity.

This commit is contained in:
Nick Mathewson 2012-07-25 16:07:22 -04:00
parent 6fdbf3a2bc
commit 13525c50eb

View File

@ -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. */