summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-18 19:29:47 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-18 19:29:50 +0100
commiteed749cca62983df3290dd46b423e59c7b039f42 (patch)
treed593577ac749c05387a4fd642363663d444f5af2 /src
parent9a9999a7137412cafc4244b915de0e7c25308939 (diff)
resolved: pass out precise authenticated bit we got passed in
Make sure the cache never altes the authenticated bit of RRs stored in it, and drops it for RRs when passing it out again.
Diffstat (limited to 'src')
-rw-r--r--src/resolve/resolved-dns-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-cache.c b/src/resolve/resolved-dns-cache.c
index a4fc185514..451875ece0 100644
--- a/src/resolve/resolved-dns-cache.c
+++ b/src/resolve/resolved-dns-cache.c
@@ -757,7 +757,7 @@ int dns_cache_lookup(DnsCache *c, DnsResourceKey *key, int *rcode, DnsAnswer **r
if (!j->rr)
continue;
- r = dns_answer_add(answer, j->rr, 0, have_authenticated && !have_non_authenticated ? DNS_ANSWER_AUTHENTICATED : 0);
+ r = dns_answer_add(answer, j->rr, 0, j->authenticated ? DNS_ANSWER_AUTHENTICATED : 0);
if (r < 0)
return r;
}