mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
resolved: use DNS_TYPE_DNSKEY for trust anchor support (#40850)
Fix typo: DNS_TYPE_DNSKEY should be used instead of DNS_TYPE_KEY. - DNS_TYPE_KEY is deprecated - Source code at resolved-dns-trust-anchor.c#L313 handles DNS_TYPE_DNSKEY records, but not DNS_TYPE_KEY So DNS_TYPE_KEY is not referenced anywhere
This commit is contained in:
@@ -581,7 +581,7 @@ int dns_trust_anchor_lookup_negative(DnsTrustAnchor *d, const char *name) {
|
||||
if (hashmap_contains(d->positive_by_key, &DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_DS, name)))
|
||||
return false;
|
||||
|
||||
if (hashmap_contains(d->positive_by_key, &DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_KEY, name)))
|
||||
if (hashmap_contains(d->positive_by_key, &DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_DNSKEY, name)))
|
||||
return false;
|
||||
|
||||
/* And now, let's look at the parent, and check that too */
|
||||
|
||||
Reference in New Issue
Block a user