From 440906ce598bb720b6e0fab2c3ec4bb1d70f283c Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 27 Aug 2001 03:58:44 +0000 Subject: [PATCH] INSIST that the rdataset is unassociated. --- lib/dns/rbtdb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);