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

CNAME signature finding could fail in cache_find().

parent 2f6040ed
......@@ -2337,10 +2337,15 @@ cache_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
cname_ok &&
cnamesig != NULL) {
/*
* We may be finding a CNAME instead
* of the desired type. If so, we
* need to return the CNAME's SIG.
* If we've already got the CNAME SIG,
* use it, otherwise change sigtype
* so that we find it.
*/
if (cnamesig != NULL)
foundsig = cnamesig;
else
sigtype =
RBTDB_RDATATYPE_SIGCNAME;
foundsig = cnamesig;
}
} else if (header->type == sigtype) {
......
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