X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fc-ares-dns%2Fserv_c-ares-dns.c;h=2de80574df85bd3d6693459e10ad3cf1548278cf;hb=9985db24464855946b7b2647d0dc5f94609a2ee0;hp=737f40452101aefb67b8c83df1b84f29aad48eaa;hpb=91d42549e96cb21ab3fee9b481c70ee0729d1b79;p=citadel.git diff --git a/citadel/modules/c-ares-dns/serv_c-ares-dns.c b/citadel/modules/c-ares-dns/serv_c-ares-dns.c index 737f40452..2de80574d 100644 --- a/citadel/modules/c-ares-dns/serv_c-ares-dns.c +++ b/citadel/modules/c-ares-dns/serv_c-ares-dns.c @@ -465,6 +465,7 @@ int QueueQuery(ns_type Type, char *name, AsyncIO *IO, IO_CallBack PostDNS) int length, family; char address_b[sizeof(struct in6_addr)]; int optmask = 0; + int rfd, wfd; optmask |= ARES_OPT_SOCK_STATE_CB; IO->DNSOptions.sock_state_cb = SockStateCb; @@ -522,6 +523,7 @@ int QueueQuery(ns_type Type, char *name, AsyncIO *IO, IO_CallBack PostDNS) return 0; } ares_query(IO->DNSChannel, name, ns_c_in, Type, QueryCb, IO); + ares_fds(IO->DNSChannel, &rfd, &wfd); return 1; }