diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-08-01 18:09:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-08-01 18:10:01 +0200 |
commit | 2c27fbca2d88214bd305272308a370a962818f1e (patch) | |
tree | ae09b9ca13041c3eab777c1dd596e4224a879385 /src/resolve/resolved-dns-server.c | |
parent | 5cb36f41f01cf4b1f4395abfffd1b33116591e58 (diff) |
resolved: flush cache each time we change to a different DNS server
Diffstat (limited to 'src/resolve/resolved-dns-server.c')
-rw-r--r-- | src/resolve/resolved-dns-server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resolve/resolved-dns-server.c b/src/resolve/resolved-dns-server.c index 2c413370ea..30d9c8b34e 100644 --- a/src/resolve/resolved-dns-server.c +++ b/src/resolve/resolved-dns-server.c @@ -64,7 +64,7 @@ int dns_server_new( if (type != DNS_SERVER_FALLBACK && s->manager->current_dns_server && s->manager->current_dns_server->type == DNS_SERVER_FALLBACK) - s->manager->current_dns_server = NULL; + manager_set_dns_server(s->manager, NULL); if (ret) *ret = s; @@ -88,10 +88,10 @@ DnsServer* dns_server_free(DnsServer *s) { } if (s->link && s->link->current_dns_server == s) - s->link->current_dns_server = NULL; + link_set_dns_server(s->link, NULL); if (s->manager && s->manager->current_dns_server == s) - s->manager->current_dns_server = NULL; + manager_set_dns_server(s->manager, NULL); free(s); |