Commit 440906ce authored by Mark Andrews's avatar Mark Andrews
Browse files

INSIST that the rdataset is unassociated.

parent 73ac1894
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * 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 * Principal Author: Bob Halley
...@@ -1290,6 +1290,8 @@ bind_rdataset(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node, ...@@ -1290,6 +1290,8 @@ bind_rdataset(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node,
new_reference(rbtdb, node); new_reference(rbtdb, node);
INSIST(rdataset->methods == NULL); /* We must be disassociated. */
rdataset->methods = &rdataset_methods; rdataset->methods = &rdataset_methods;
rdataset->rdclass = rbtdb->common.rdclass; rdataset->rdclass = rbtdb->common.rdclass;
rdataset->type = RBTDB_RDATATYPE_BASE(header->type); rdataset->type = RBTDB_RDATATYPE_BASE(header->type);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment