diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c index be64680cf6..bc2e540b29 100644 --- a/lib/dns/rbtdb.c +++ b/lib/dns/rbtdb.c @@ -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);