summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-21 16:29:13 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-26 19:09:09 +0100
commit0936416a1cba187dc76903dae73246f4cbddf312 (patch)
tree752b217589e62d7d5bec54f77255decdf293e7a5
parent65b200e70d01cb7c513114b602c9b5cf41348f77 (diff)
resolved: when matching SOA RRs, don't eat up errors
-rw-r--r--src/resolve/resolved-dns-rr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/resolve/resolved-dns-rr.c b/src/resolve/resolved-dns-rr.c
index ac24169344..067fb1cd08 100644
--- a/src/resolve/resolved-dns-rr.c
+++ b/src/resolve/resolved-dns-rr.c
@@ -267,10 +267,7 @@ int dns_resource_key_match_soa(const DnsResourceKey *key, const DnsResourceKey *
if (soa->type != DNS_TYPE_SOA)
return 0;
- if (!dns_name_endswith(DNS_RESOURCE_KEY_NAME(key), DNS_RESOURCE_KEY_NAME(soa)))
- return 0;
-
- return 1;
+ return dns_name_endswith(DNS_RESOURCE_KEY_NAME(key), DNS_RESOURCE_KEY_NAME(soa));
}
static void dns_resource_key_hash_func(const void *i, struct siphash *state) {