]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
INSIST used 9.2 style reference counting.
authorMark Andrews <marka@isc.org>
Tue, 24 Jul 2001 02:57:34 +0000 (02:57 +0000)
committerMark Andrews <marka@isc.org>
Tue, 24 Jul 2001 02:57:34 +0000 (02:57 +0000)
lib/dns/zone.c

index b2c406f23498d98c4ad0f7f6001a0e842c02cc9e..03947f87878bb06aad7f1bae2ef07c04cf034a39 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: zone.c,v 1.283.2.16 2001/07/19 17:11:33 gson Exp $ */
+/* $Id: zone.c,v 1.283.2.17 2001/07/24 02:57:34 marka Exp $ */
 
 #include <config.h>
 
@@ -1505,7 +1505,7 @@ zone_iattach(dns_zone_t *source, dns_zone_t **target) {
        REQUIRE(LOCKED_ZONE(source));
        REQUIRE(DNS_ZONE_VALID(source));
        REQUIRE(target != NULL && *target == NULL);
-       INSIST(source->irefs + isc_refcount_current(&source->erefs) > 0);
+       INSIST(source->irefs + source->erefs > 0);
        source->irefs++;
        INSIST(source->irefs != 0);
        *target = source;