summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-answer.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-22 18:19:48 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-26 19:09:10 +0100
commit6b2f709364b3bb4277de3d6fa2e5b45ba3c12424 (patch)
tree9c76dc59da4731e1331654c67e6a124205a50987 /src/resolve/resolved-dns-answer.c
parent3ecc3df8ffa2d40c814fd6c1c4d554994d60b7af (diff)
resolved: make use of dns_type_may_redirect() where possible
Diffstat (limited to 'src/resolve/resolved-dns-answer.c')
-rw-r--r--src/resolve/resolved-dns-answer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-answer.c b/src/resolve/resolved-dns-answer.c
index 4dea4a2d45..399b518644 100644
--- a/src/resolve/resolved-dns-answer.c
+++ b/src/resolve/resolved-dns-answer.c
@@ -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) {