diff options
author | Tom Gundersen <teg@jklm.no> | 2014-02-10 11:53:16 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-02-10 11:53:20 +0100 |
commit | d50cf59b94e44d359c3f947a990b730a1f1a242c (patch) | |
tree | 94e4d2112e9a59d1a389280f25537d4ee89b34e3 /src/network/networkd-link.c | |
parent | bbf261b75fda04ea6c1278d5e427f7c47eea9a6b (diff) |
networkd: fix setting dns from dhcp
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 4 |
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; |