Skip revoked keys when selecting DNSKEY in the validation loop

Don't select revoked keys when iterating through DNSKEYs in the DNSSEC
validation routines.
This commit is contained in:
Mark Andrews
2024-02-01 21:47:29 +01:00
committed by Michał Kępień
parent 1b3b0cef22
commit 439e16e4de
+2
View File
@@ -1144,6 +1144,8 @@ select_signing_key(dns_validator_t *val, dns_rdataset_t *rdataset) {
(dns_secalg_t)dst_key_alg(val->key) &&
siginfo->keyid ==
(dns_keytag_t)dst_key_id(val->key) &&
(dst_key_flags(val->key) & DNS_KEYFLAG_REVOKE) ==
0 &&
dst_key_iszonekey(val->key))
{
if (foundold) {