summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-zone.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-dns-zone.c
parent82bd6dddc4a363a9c3c6f41eb46eb171a80dca27 (diff)
resolved: verify all RRs when we come back from suspend
Diffstat (limited to 'src/resolve/resolved-dns-zone.c')
-rw-r--r--src/resolve/resolved-dns-zone.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-zone.c b/src/resolve/resolved-dns-zone.c
index d96ddd270c..5f250e7ca3 100644
--- a/src/resolve/resolved-dns-zone.c
+++ b/src/resolve/resolved-dns-zone.c
@@ -625,3 +625,17 @@ int dns_zone_verify_conflicts(DnsZone *zone, DnsResourceKey *key) {
return c;
}
+
+void dns_zone_verify_all(DnsZone *zone) {
+ DnsZoneItem *i;
+ Iterator iterator;
+
+ assert(zone);
+
+ HASHMAP_FOREACH(i, zone->by_key, iterator) {
+ DnsZoneItem *j;
+
+ LIST_FOREACH(by_key, j, i)
+ dns_zone_item_verify(j);
+ }
+}