summaryrefslogtreecommitdiff
path: root/src/network/networkd-address.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-03-13 20:46:45 +0100
committerTom Gundersen <teg@jklm.no>2014-03-14 12:44:17 +0100
commit06f021a8048583d66202e3ac5cd0a12386d33ac2 (patch)
tree407112a3da562091ca371ebd1cff2e9f5bf3faf8 /src/network/networkd-address.c
parent0ea51a1129b9984a3c6d96cef1b0e33c99b5e9cf (diff)
networkd: allow more than one static DNS server
Diffstat (limited to 'src/network/networkd-address.c')
-rw-r--r--src/network/networkd-address.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c
index c92418967b..414b3bccfa 100644
--- a/src/network/networkd-address.c
+++ b/src/network/networkd-address.c
@@ -225,7 +225,7 @@ int config_parse_dns(const char *unit,
const char *rvalue,
void *data,
void *userdata) {
- Address **dns = data;
+ Set **dns = data;
_cleanup_address_free_ Address *n = NULL;
int r;
@@ -246,7 +246,7 @@ int config_parse_dns(const char *unit,
return 0;
}
- *dns = n;
+ set_put(*dns, n);
n = NULL;
return 0;