mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
Check that the zone is still loaded in the notify event handler.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: zone.c,v 1.180 2000/08/10 18:35:46 gson Exp $ */
|
/* $Id: zone.c,v 1.181 2000/08/10 19:34:49 bwelling Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -1979,7 +1979,12 @@ notify_send_toaddr(isc_task_t *task, isc_event_t *event) {
|
|||||||
UNUSED(task);
|
UNUSED(task);
|
||||||
|
|
||||||
LOCK(¬ify->zone->lock);
|
LOCK(¬ify->zone->lock);
|
||||||
|
|
||||||
dns_zone_iattach(notify->zone, &zone);
|
dns_zone_iattach(notify->zone, &zone);
|
||||||
|
|
||||||
|
if (DNS_ZONE_FLAG(notify->zone, DNS_ZONEFLG_LOADED) == 0)
|
||||||
|
goto cleanup;
|
||||||
|
|
||||||
if ((event->ev_attributes & ISC_EVENTATTR_CANCELED) != 0 ||
|
if ((event->ev_attributes & ISC_EVENTATTR_CANCELED) != 0 ||
|
||||||
DNS_ZONE_FLAG(notify->zone, DNS_ZONEFLG_EXITING)) {
|
DNS_ZONE_FLAG(notify->zone, DNS_ZONEFLG_EXITING)) {
|
||||||
result = ISC_R_CANCELED;
|
result = ISC_R_CANCELED;
|
||||||
|
Reference in New Issue
Block a user