chiark / gitweb /
Do not adns_cancel in the middle of adns_forallqueries
authorian <ian>
Fri, 20 Oct 2006 10:41:22 +0000 (10:41 +0000)
committerian <ian>
Fri, 20 Oct 2006 10:41:22 +0000 (10:41 +0000)
adns/adns.c
debian/changelog

index 14ea50c..2a86f4a 100644 (file)
@@ -305,6 +305,8 @@ static void destroy_resolver(Tcl_Interp *ip, Resolver *res) {
       adns_forallqueries_begin(res->ads);
       aqu= adns_forallqueries_next(res->ads, &query_v);
       if (!aqu) break;
+      assert(query_v->aqu == aqu);
+      query_v->aqu= 0; /* avoid disrupting the adns query list */
       asynch_query_dispose(ip, query_v);
     }
     adns_finish(res->ads);
index 569227a..76235c6 100644 (file)
@@ -1,3 +1,10 @@
+chiark-tcl (1.0.2) unstable; urgency=low
+
+  Bugfixes:
+  * Do not adns_cancel in the middle of adns_forallqueries.
+
+ --
+
 chiark-tcl (1.0.1) unstable; urgency=low
 
   New features: