[server lost] bug fix: The DNS resolver must not be freed on MacOSX

This commit is contained in:
Nicolas Viennot 2013-08-13 15:41:41 -04:00
parent 089a594a68
commit 31326220fa

View File

@ -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)