]> granicus.if.org Git - libevent/commitdiff
Fix possible uninitialized read in dns regression tests. Found by coverity.
authorNick Mathewson <nickm@torproject.org>
Wed, 25 Jul 2012 20:05:36 +0000 (16:05 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 25 Jul 2012 20:05:36 +0000 (16:05 -0400)
test/regress_dns.c

index a566469b69e9bca144ce2a823220e2560fb27d0e..b34fb96c9e1838d438c5fc77c3a7cf1b29ed148a 100644 (file)
@@ -1216,6 +1216,7 @@ test_getaddrinfo_async(void *arg)
        evdns_base_load_hosts(dns_base, NULL);
 
        memset(a_out, 0, sizeof(a_out));
+       memset(&local_outcome, 0, sizeof(local_outcome));
 
        n_gai_results_pending = 10000; /* don't think about exiting yet. */