diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-24 21:27:29 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-25 21:58:38 +0100 |
commit | 4b95f1798f22c1bb75295f448188560cb6ec9ece (patch) | |
tree | a558209fdb4450717d3d28c4987140ed4f5b33b8 /src/resolve/resolved-manager.c | |
parent | a51c10485af349eb15faa4d1a63b9818bcf3e589 (diff) |
resolved: unify DnsServer handling code between Link and Manager
This copies concepts we introduced for the DnsSearchDomain stuff, and
reworks the operations on lists of dns servers to be reusable and
generic for use both with the Link and the Manager object.
Diffstat (limited to 'src/resolve/resolved-manager.c')
-rw-r--r-- | src/resolve/resolved-manager.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c index 0771ac840f..31f042e066 100644 --- a/src/resolve/resolved-manager.c +++ b/src/resolve/resolved-manager.c @@ -533,9 +533,8 @@ Manager *manager_free(Manager *m) { if (!m) return NULL; - manager_flush_dns_servers(m, DNS_SERVER_SYSTEM); - manager_flush_dns_servers(m, DNS_SERVER_FALLBACK); - + dns_server_unlink_all(m->dns_servers); + dns_server_unlink_all(m->fallback_dns_servers); dns_search_domain_unlink_all(m->search_domains); while ((l = hashmap_first(m->links))) |