resolved: make use of dns_type_may_redirect() where possible

This commit is contained in:
Lennart Poettering 2015-12-22 18:19:48 +01:00
parent 3ecc3df8ff
commit 6b2f709364
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ int dns_answer_find_cname_or_dname(DnsAnswer *a, const DnsResourceKey *key, DnsR
assert(key);
/* For a {C,D}NAME record we can never find a matching {C,D}NAME record */
if (key->type == DNS_TYPE_CNAME || key->type == DNS_TYPE_DNAME)
if (!dns_type_may_redirect(key->type))
return 0;
DNS_ANSWER_FOREACH_FLAGS(rr, rr_flags, a) {