X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/8715e68b18f84b2bc64d44caffc6862db5e2d4c8..fcadeb25968afc703fb8f6053b67bf9b3374f8b7:/src/setup.c diff --git a/src/setup.c b/src/setup.c index 3419cd6..e853ab7 100644 --- a/src/setup.c +++ b/src/setup.c @@ -558,6 +558,7 @@ static int init_begin(adns_state *ads_r, adns_initflags flags, LIST_INIT(ads->tcpw); LIST_INIT(ads->childw); LIST_INIT(ads->output); + LIST_INIT(ads->intdone); ads->forallnext= 0; ads->nextid= 0x311f; ads->nudp= 0; @@ -729,6 +730,7 @@ void adns_finish(adns_state ads) { else if (ads->tcpw.head) adns__cancel(ads->tcpw.head); else if (ads->childw.head) adns__cancel(ads->childw.head); else if (ads->output.head) adns__cancel(ads->output.head); + else if (ads->intdone.head) adns__cancel(ads->output.head); else break; } for (i=0; inudp; i++) close(ads->udpsocket[i].fd);