summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-05-20 09:11:58 -0400
committerLennart Poettering <lennart@poettering.net>2016-05-20 15:11:58 +0200
commit0e3e1aefebffdd97befd06586d055c5996697eed (patch)
treea3b23f6c4ee5e9f16ebc904d76b7c6b423f325c3 /src
parent186ad4b1a05b5c5d231a3b4b7faba8a5c40e3c9d (diff)
resolved: fix accounting of dns serves on a link (#3291)
After a few link up/down events I got this warning: May 17 22:05:10 laptop systemd-resolved[2983]: Failed to read DNS servers for interface wlp3s0, ignoring: Argument list too long
Diffstat (limited to 'src')
-rw-r--r--src/resolve/resolved-dns-server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-server.c b/src/resolve/resolved-dns-server.c
index 49d488cec5..3095c042db 100644
--- a/src/resolve/resolved-dns-server.c
+++ b/src/resolve/resolved-dns-server.c
@@ -157,6 +157,7 @@ void dns_server_unlink(DnsServer *s) {
assert(s->link);
assert(s->link->n_dns_servers > 0);
LIST_REMOVE(servers, s->link->dns_servers, s);
+ s->link->n_dns_servers--;
break;
case DNS_SERVER_SYSTEM: