]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
dns_zt_load() was not checking the validity of the zonetable.
authorBrian Wellington <source@isc.org>
Tue, 27 Feb 2001 02:54:11 +0000 (02:54 +0000)
committerBrian Wellington <source@isc.org>
Tue, 27 Feb 2001 02:54:11 +0000 (02:54 +0000)
lib/dns/zt.c

index 2fbb17c910c7c807208572e742a7a4a95ce673c4..15634a8133c163b62e8320e6c7302f48d4e13839 100644 (file)
@@ -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 <config.h>
 
@@ -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);