X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/763d28b9c7e9627bf667613cebebbe2c8f22ed0f..74c948317bd4785fbfa8b6047b8da2e1705b1863:/src/query.c?ds=sidebyside diff --git a/src/query.c b/src/query.c index 2302c81..b9860bf 100644 --- a/src/query.c +++ b/src/query.c @@ -437,6 +437,7 @@ void adns__query_done(adns_query qu) { parent= qu->parent; if (parent) { LIST_UNLINK_PART(parent->children,qu,siblings.); + if (!parent->children.head) LIST_UNLINK(qu->ads->childw,parent); qu->ctx.callback(parent,qu); free_query_allocs(qu); free(qu);