add REQUIRE statements for dns_db_find()

This commit is contained in:
Bob Halley
1999-04-05 20:47:20 +00:00
parent b4055b9666
commit e7e2e948e3
+12
View File
@@ -247,6 +247,18 @@ dns_db_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
dns_dbnode_t **nodep, dns_name_t *foundname,
dns_rdataset_t *rdataset) {
/*
* Find the best match for 'name' and 'type' in version 'version'
* of 'db'.
*/
REQUIRE(DNS_DB_VALID(db));
REQUIRE(type != dns_rdatatype_sig);
REQUIRE(nodep == NULL || (nodep != NULL && *nodep == NULL));
REQUIRE(foundname == NULL || dns_name_hasbuffer(foundname));
REQUIRE(rdataset == NULL ||
(DNS_RDATASET_VALID(rdataset) && rdataset->methods == NULL));
/* XXX TBS */
return ((db->methods->find)(db, name, version, type, options,