]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
INSIST that the rdataset is unassociated.
authorMark Andrews <marka@isc.org>
Mon, 27 Aug 2001 03:58:44 +0000 (03:58 +0000)
committerMark Andrews <marka@isc.org>
Mon, 27 Aug 2001 03:58:44 +0000 (03:58 +0000)
lib/dns/rbtdb.c

index be64680cf6ffbeb796bd1b2e4f78a6b06c2c4871..bc2e540b297aaed172528cdb8b962c8a9b0c78c7 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: rbtdb.c,v 1.167 2001/06/04 20:57:25 tale Exp $ */
+/* $Id: rbtdb.c,v 1.168 2001/08/27 03:58:44 marka Exp $ */
 
 /*
  * Principal Author: Bob Halley
@@ -1290,6 +1290,8 @@ bind_rdataset(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node,
 
        new_reference(rbtdb, node);
 
+       INSIST(rdataset->methods == NULL);      /* We must be disassociated. */
+
        rdataset->methods = &rdataset_methods;
        rdataset->rdclass = rbtdb->common.rdclass;
        rdataset->type = RBTDB_RDATATYPE_BASE(header->type);