summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-06 16:59:48 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-11 15:06:22 +0200
commit902bb5d8abb2a7d258741828d212ca549ab16950 (patch)
treeab3ce83fe40ca0e0d056003e54f0dc4029e8c315 /src/resolve/resolved-manager.c
parentresolved: destroy outstanding queries if the clients that initiated them die (diff)
downloadsystemd-902bb5d8abb2a7d258741828d212ca549ab16950.tar.xz
systemd-902bb5d8abb2a7d258741828d212ca549ab16950.zip
resolved: verify all RRs when we come back from suspend
Diffstat (limited to 'src/resolve/resolved-manager.c')
-rw-r--r--src/resolve/resolved-manager.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c
index a93f4a597f..1d33c2ae19 100644
--- a/src/resolve/resolved-manager.c
+++ b/src/resolve/resolved-manager.c
@@ -554,6 +554,7 @@ Manager *manager_free(Manager *m) {
manager_llmnr_stop(m);
+ sd_bus_slot_unref(m->prepare_for_sleep_slot);
sd_event_source_unref(m->bus_retry_event_source);
sd_bus_unref(m->bus);
@@ -1722,6 +1723,15 @@ DnsScope* manager_find_scope(Manager *m, DnsPacket *p) {
return NULL;
}
+void manager_verify_all(Manager *m) {
+ DnsScope *s;
+
+ assert(m);
+
+ LIST_FOREACH(scopes, s, m->dns_scopes)
+ dns_zone_verify_all(&s->zone);
+}
+
static const char* const support_table[_SUPPORT_MAX] = {
[SUPPORT_NO] = "no",
[SUPPORT_YES] = "yes",