ANY queries should not match negative cache entries

This commit is contained in:
Bob Halley
1999-11-09 02:27:46 +00:00
parent 46ae6bb61f
commit b223821425
+2 -1
View File
@@ -2332,7 +2332,8 @@ cache_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
* it.
*/
if (header->type == type ||
type == dns_rdatatype_any ||
(type == dns_rdatatype_any &&
RBTDB_RDATATYPE_BASE(header->type) != 0) ||
(cname_ok && header->type ==
dns_rdatatype_cname)) {
/*