X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=blobdiff_plain;f=src%2Fsetup.c;h=e853ab797e36139b015a3f1bb628fd6a38fa3377;hp=3419cd6a5134f2157d710b541825ffa436d2ea36;hb=b582ca0f999ffd51e26c5543d2023ea137af3bec;hpb=64aae7c863f6e38cecc3cd6d5054f272e13852e8 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);