From a3e2ec2dfec1a8171eaf584bb957b80c04de1e0b Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 13 Apr 1999 01:52:58 +0000 Subject: [PATCH] dns_db_deleterdataset() needed the same REQUIRE fix as dns_db_addrdataset() --- lib/dns/db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/db.c b/lib/dns/db.c index b9d52d6698..f2a94cc8f9 100644 --- a/lib/dns/db.c +++ b/lib/dns/db.c @@ -394,8 +394,8 @@ dns_db_deleterdataset(dns_db_t *db, dns_dbnode_t *node, REQUIRE(DNS_DB_VALID(db)); REQUIRE(node != NULL); - REQUIRE(((db->attributes & DNS_DBATTR_CACHE) == 0 && version != NULL) - || version == NULL); + REQUIRE(((db->attributes & DNS_DBATTR_CACHE) == 0 && version != NULL)|| + ((db->attributes & DNS_DBATTR_CACHE) != 0 && version == NULL)); return ((db->methods->deleterdataset)(db, node, version, type)); }