X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/blobdiff_plain/6a894b947fd62f48773c960a528e905d40d2eb20..dcc8e4427a046c05f9d3582c919ff276645a449a:/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);