From d94b209b959a956bbffd88ab96b6b5af73d0e152 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Fri, 12 Jan 2001 20:11:28 +0000 Subject: [PATCH] added another INSIST() to dns_dbiterator_pause() as suggested by Bob --- lib/dns/rbtdb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c index 5050d2be91..34fb930b56 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.142 2001/01/12 18:56:40 gson Exp $ */ +/* $Id: rbtdb.c,v 1.143 2001/01/12 20:11:28 gson Exp $ */ /* * Principal Author: Bob Halley @@ -4667,6 +4667,7 @@ dbiterator_pause(dns_dbiterator_t *iterator) { return (ISC_R_SUCCESS); if (node != NULL) { + INSIST(rbtdbiter->tree_locked); LOCK(&rbtdb->node_locks[node->locknum].lock); new_reference(rbtdb, node); UNLOCK(&rbtdb->node_locks[node->locknum].lock);