struct DNSContext;
-typedef void (*adns_callback_f)(void *arg, const struct sockaddr *ai, int salen);
+typedef void (*adns_callback_f)(void *arg, const struct sockaddr *sa, int salen);
struct DNSContext *adns_create_context(void);
void adns_reload(struct DNSContext *ctx);
/* got one */
list_del(&rq->node);
- rq->req->done = true;
got_result_gai(e, rq->gairq.ar_result, rq->req);
free(rq);
}
static void impl_launch_query(struct DNSRequest *req)
{
struct evdns_getaddrinfo_request *gai_req;
+ struct evdns_base *dns = req->ctx->edns;
- gai_req = evdns_getaddrinfo(req->ctx->edns, req->name, NULL, NULL, got_result_gai, req);
+ gai_req = evdns_getaddrinfo(dns, req->name, NULL, NULL, got_result_gai, req);
log_noise("dns: evdns_getaddrinfo(%s)=%p", req->name, gai_req);
}