Commit b2238214 authored by Bob Halley's avatar Bob Halley
Browse files

ANY queries should not match negative cache entries

parent 46ae6bb6
......@@ -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)) {
/*
......
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