summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author27o <27o@users.noreply.github.com>2017-02-09 10:15:21 +0100
committerLennart Poettering <lennart@poettering.net>2017-02-09 10:15:21 +0100
commit28c78e07aaf34ed0ce3a7472b0504e4cefdedc52 (patch)
tree44bbf981e00e589d3f79a4691f5ccde68bd7a8fa
parent4997dd91fb8a7c5075a2375ef3b4f2ea1473ded6 (diff)
dhcp-server: always save the ACKed lease address (#5281)
-rw-r--r--src/libsystemd-network/sd-dhcp-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp-server.c b/src/libsystemd-network/sd-dhcp-server.c
index 0e57ab6b69..2890681561 100644
--- a/src/libsystemd-network/sd-dhcp-server.c
+++ b/src/libsystemd-network/sd-dhcp-server.c
@@ -857,7 +857,7 @@ int dhcp_server_handle_message(sd_dhcp_server *server, DHCPMessage *message,
if (!existing_lease) {
lease = new0(DHCPLease, 1);
- lease->address = req->requested_ip;
+ lease->address = address;
lease->client_id.data = memdup(req->client_id.data,
req->client_id.length);
if (!lease->client_id.data) {