summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-02-10 11:53:16 +0100
committerTom Gundersen <teg@jklm.no>2014-02-10 11:53:20 +0100
commitd50cf59b94e44d359c3f947a990b730a1f1a242c (patch)
tree94e4d2112e9a59d1a389280f25537d4ee89b34e3 /src
parentbbf261b75fda04ea6c1278d5e427f7c47eea9a6b (diff)
networkd: fix setting dns from dhcp
Diffstat (limited to 'src')
-rw-r--r--src/network/networkd-link.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 867baa6dee..6468f9cd31 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -562,6 +562,8 @@ static int dhcp_lease_acquired(sd_dhcp_client *client, Link *link) {
ADDRESS_FMT_VAL(gateway),
NULL);
+ link->dhcp_lease = lease;
+
if (link->network->dhcp_dns) {
r = sd_dhcp_lease_get_dns(lease, &nameservers, &nameservers_size);
if (r >= 0) {
@@ -595,8 +597,6 @@ static int dhcp_lease_acquired(sd_dhcp_client *client, Link *link) {
}
}
- link->dhcp_lease = lease;
-
link_enter_set_addresses(link);
return 0;