From bfc2c80e5bed3c17f3cf7451939458b0357bfd38 Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 25 Sep 1999 16:25:00 +0000 Subject: [PATCH] Do not scramble innards when a query on the output queue is cancelled. --- changelog | 2 ++ src/check.c | 1 + src/query.c | 1 + 3 files changed, 4 insertions(+) diff --git a/changelog b/changelog index fc51327..9fba052 100644 --- a/changelog +++ b/changelog @@ -18,6 +18,7 @@ adns (0.5) unstable; urgency=medium * Reject TXT RRs with no strings. * Don't complain so much about poll(2) tests if not available. * Do not give -u 0 -g 0 options to install. + * Do not scramble innards when a query on the output queue is cancelled. -- @@ -101,4 +102,5 @@ adns (0.1) experimental; urgency=low Local variables: mode: debian-changelog +fill-column: 75 End: diff --git a/src/check.c b/src/check.c index 84fe168..04c5c8e 100644 --- a/src/check.c +++ b/src/check.c @@ -136,6 +136,7 @@ static void checkc_queue_output(adns_state ads) { assert(qu->state == query_done); assert(!qu->children.head && !qu->children.tail); assert(!qu->parent); + assert(!qu->allocations.head && !qu->allocations.tail); checkc_query(ads,qu); }); } diff --git a/src/query.c b/src/query.c index 172ff06..a676376 100644 --- a/src/query.c +++ b/src/query.c @@ -362,6 +362,7 @@ static void free_query_allocs(adns_query qu) { cancel_children(qu); for (an= qu->allocations.head; an; an= ann) { ann= an->next; free(an); } + LIST_INIT(qu->allocations); adns__vbuf_free(&qu->vb); } -- 2.30.2