Fix DNS reply when asking for DNSSEC and a validated CNAME is already cached.

This commit is contained in:
Simon Kelley
2020-11-14 15:29:34 +00:00
parent 059aded070
commit 1eb6cedb03

View File

@@ -1359,6 +1359,8 @@ size_t answer_request(struct dns_header *header, char *limit, size_t qlen,
} }
} }
else
return 0; /* give up if any cached CNAME in chain can't be used for DNSSEC reasons. */
strcpy(name, cname_target); strcpy(name, cname_target);
} }