summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/sd-dhcp-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystemd-network/sd-dhcp-client.c')
-rw-r--r--src/libsystemd-network/sd-dhcp-client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c
index 1f676ccb65..b6810a9efe 100644
--- a/src/libsystemd-network/sd-dhcp-client.c
+++ b/src/libsystemd-network/sd-dhcp-client.c
@@ -587,6 +587,8 @@ static int client_handle_offer(sd_dhcp_client *client, DHCPMessage *offer,
if (r != DHCP_OFFER)
return -ENOMSG;
+ lease->next_server = offer->siaddr;
+
lease->address = offer->yiaddr;
if (lease->address == INADDR_ANY ||
@@ -621,6 +623,8 @@ static int client_handle_ack(sd_dhcp_client *client, DHCPMessage *ack,
if (r != DHCP_ACK)
return -ENOMSG;
+ lease->next_server = ack->siaddr;
+
lease->address = ack->yiaddr;
if (lease->address == INADDR_ANY ||