From 113dee27afdab6fc50bd99d124147147fca579b9 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Tue, 27 Feb 2001 02:54:11 +0000 Subject: [PATCH] dns_zt_load() was not checking the validity of the zonetable. --- lib/dns/zt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/dns/zt.c b/lib/dns/zt.c index 2fbb17c910..15634a8133 100644 --- a/lib/dns/zt.c +++ b/lib/dns/zt.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: zt.c,v 1.28 2001/01/09 21:51:48 bwelling Exp $ */ +/* $Id: zt.c,v 1.29 2001/02/27 02:54:11 bwelling Exp $ */ #include @@ -220,6 +220,9 @@ dns_zt_detach(dns_zt_t **ztp) { isc_result_t dns_zt_load(dns_zt_t *zt, isc_boolean_t stop) { isc_result_t result; + + REQUIRE(VALID_ZT(zt)); + RWLOCK(&zt->rwlock, isc_rwlocktype_read); result = dns_zt_apply(zt, stop, load, NULL); RWUNLOCK(&zt->rwlock, isc_rwlocktype_read);