From 8e44cd45744421d03440deed9f0c19fcc18cfbc2 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Mon, 10 Jul 2000 22:43:38 +0000 Subject: [PATCH] pullup: Check that zone->view is not NULL before checking that zone->view->adb is not NULL. It appears that zone maintenance can occur when the zone is shutting down and the view pointer is NULL. We don't want to do zone maintenance in this case. --- lib/dns/zone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 7e2eb18867..90db03b6fa 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: zone.c,v 1.152.2.1 2000/07/03 22:08:57 bwelling Exp $ */ +/* $Id: zone.c,v 1.152.2.2 2000/07/10 22:43:38 gson Exp $ */ #include @@ -1316,7 +1316,7 @@ dns_zone_maintenance(dns_zone_t *zone) { * adb or resolver, and we had better not try * to do maintenance on it. */ - if (zone->view->adb == NULL) + if (zone->view == NULL || zone->view->adb == NULL) return; isc_stdtime_get(&now);