Commit 302d9beb authored by Bob Halley's avatar Bob Halley

require added rdatasets to be in the same class as the database

parent 1e4a63c4
......@@ -406,6 +406,7 @@ dns_db_addrdataset(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version,
((db->attributes & DNS_DBATTR_CACHE) != 0 && version == NULL));
REQUIRE(DNS_RDATASET_VALID(rdataset));
REQUIRE(rdataset->methods != NULL);
REQUIRE(rdataset->rdclass == db->rdclass);
return ((db->methods->addrdataset)(db, node, version, now, rdataset));
}
......
......@@ -770,7 +770,8 @@ dns_db_addrdataset(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version,
*
* 'node' is a valid node.
*
* 'rdataset' is a valid, associated rdataset.
* 'rdataset' is a valid, associated rdataset with the same class
* as 'db'.
*
* The database has zone semantics and 'version' is a valid
* read-write version, or the database has cache semantics
......
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