refresh_callback needs to check if the zone is exiting

(cherry picked from commit 2e314abcf0a47acfbab55e5ef0463c04c08476be)
This commit is contained in:
Mark Andrews 2013-09-18 14:51:24 +10:00
parent ebd7900670
commit d2c50258e2

View file

@ -10431,6 +10431,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;
*/