]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
refresh_callback needs to check if the zone is exiting
authorMark Andrews <marka@isc.org>
Wed, 18 Sep 2013 04:51:24 +0000 (14:51 +1000)
committerMark Andrews <marka@isc.org>
Wed, 18 Sep 2013 04:52:38 +0000 (14:52 +1000)
(cherry picked from commit 2e314abcf0a47acfbab55e5ef0463c04c08476be)

lib/dns/zone.c

index 220b8daacea7a9e6a8e7f7b17bd433e1d41b58dd..48c72bb7f887923c1ac01409e69f179b0aa9697d 100644 (file)
@@ -10771,6 +10771,12 @@ refresh_callback(isc_task_t *task, isc_event_t *event) {
 
        LOCK_ZONE(zone);
 
+       if (DNS_ZONE_FLAG(zone, DNS_ZONEFLG_EXITING)) {
+               isc_event_free(&event);
+               dns_request_destroy(&zone->request);
+               goto detach;
+       }
+
        /*
         * if timeout log and next master;
         */