From: Azat Khuzhin Date: Tue, 22 Mar 2016 20:10:19 +0000 (+0300) Subject: regress_clean_dnsserver(): reset global port vars X-Git-Tag: release-2.1.6-beta~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=351207f4006cd9188b141b953d6dff6caf11c969;p=libevent regress_clean_dnsserver(): reset global port vars This will fix some test chains with --no-fork. --- diff --git a/test/regress_testutils.c b/test/regress_testutils.c index 7554a541..959347ea 100644 --- a/test/regress_testutils.c +++ b/test/regress_testutils.c @@ -129,10 +129,14 @@ end: void regress_clean_dnsserver(void) { - if (dns_port) + if (dns_port) { evdns_close_server_port(dns_port); - if (dns_sock >= 0) + dns_port = NULL; + } + if (dns_sock >= 0) { evutil_closesocket(dns_sock); + dns_sock = -1; + } } static void strtolower(char *s)