1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-05 13:18:06 +03:00

dhcp-server: always save the ACKed lease address (#5281)

This commit is contained in:
27o 2017-02-09 10:15:21 +01:00 committed by Lennart Poettering
parent 4997dd91fb
commit 28c78e07aa

View File

@ -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) {