(void) ttl;
(void) addresses;
+ if (result == DNS_ERR_CANCEL) {
+ return;
+ }
+
EVDNS_LOCK(ns->base);
ns->probe_request = NULL;
if (result == DNS_ERR_CANCEL) {
(void) event_del(&server->event);
if (evtimer_initialized(&server->timeout_event))
(void) evtimer_del(&server->timeout_event);
+ if (server->probe_request) {
+ evdns_cancel_request(server->base, server->probe_request);
+ server->probe_request = NULL;
+ }
if (server->socket >= 0)
evutil_closesocket(server->socket);
mm_free(server);