mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 04:19:10 -04:00
Fix another possible uninitialized read in dns regression tests. Found by coverity.
This commit is contained in:
parent
6fdbf3a2bc
commit
13525c50eb
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user