summaryrefslogtreecommitdiff
path: root/src/resolve-host
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-18 19:32:46 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-18 19:40:47 +0100
commitd2579eec5e1b845b2cf29caddc951dc22f2abb91 (patch)
treea79b2eedd458f8f93b0bec40a40490b4098e951d /src/resolve-host
parentea207b639a379b2a0bb8f2cafb0893e406c6152e (diff)
resolved: rework mDNS cache-flush bit handling
This adds a new DnsAnswer item flag "DNS_ANSWER_SHARED_OWNER" which is set for mDNS RRs that lack the cache-flush bit. The cache-flush bit is removed from the DnsResourceRecord object in favour of this. This also splits out the code that removes previous entries when adding new positive ones into a new separate call dns_cache_remove_previous().
Diffstat (limited to 'src/resolve-host')
-rw-r--r--src/resolve-host/resolve-host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve-host/resolve-host.c b/src/resolve-host/resolve-host.c
index bcacb2595c..3e4b52a3a9 100644
--- a/src/resolve-host/resolve-host.c
+++ b/src/resolve-host/resolve-host.c
@@ -398,7 +398,7 @@ static int resolve_record(sd_bus *bus, const char *name) {
if (r < 0)
return log_oom();
- r = dns_packet_read_rr(p, &rr, NULL);
+ r = dns_packet_read_rr(p, &rr, NULL, NULL);
if (r < 0) {
log_error("Failed to parse RR.");
return r;