mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-29 19:43:41 +01:00
[server lost] bug fix: The DNS resolver must not be freed on MacOSX
This commit is contained in:
parent
089a594a68
commit
31326220fa
@ -68,8 +68,12 @@ static void dns_cb(int errcode, struct evutil_addrinfo *addr, void *ptr)
|
||||
|
||||
evutil_freeaddrinfo(addr);
|
||||
|
||||
evdns_base_free(ev_dnsbase, 0);
|
||||
ev_dnsbase = NULL;
|
||||
/*
|
||||
* XXX For some reason, freeing the DNS resolver makes MacOSX flip out...
|
||||
* not sure what's going on...
|
||||
* evdns_base_free(ev_dnsbase, 0);
|
||||
* ev_dnsbase = NULL;
|
||||
*/
|
||||
}
|
||||
|
||||
static void lookup_and_connect(void)
|
||||
|
Loading…
Reference in New Issue
Block a user