diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-30 01:45:52 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-30 01:45:52 +0200 |
commit | 0f05c387597a93fa74cdf7d351fd255aca56026d (patch) | |
tree | 661883e4de640bb8099df8ec9efd7836a148198f /src/resolve | |
parent | af93291cc4cbd2fe2fb4af7d3c56138fb39f31dc (diff) |
resolved: never attempt negative caching of SOA records
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-dns-answer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-answer.c b/src/resolve/resolved-dns-answer.c index 93e51fc248..6096959355 100644 --- a/src/resolve/resolved-dns-answer.c +++ b/src/resolve/resolved-dns-answer.c @@ -122,6 +122,10 @@ int dns_answer_find_soa(DnsAnswer *a, DnsResourceKey *key, DnsResourceRecord **r assert(key); assert(ret); + /* For a SOA record we can never find a matching SOA record */ + if (key->type == DNS_TYPE_SOA) + return 0; + for (i = 0; i < a->n_rrs; i++) { if (a->rrs[i]->key->class != DNS_CLASS_IN) |