From: Patrik Flykt Date: Fri, 10 Jul 2015 08:31:50 +0000 (+0300) Subject: sd-dhcp6-client: Save a DHCPv6 lease also with Information Reply X-Git-Tag: v225~41^2~9 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fsystemd.git;a=commitdiff_plain;h=9d89d1ae71cb298218e35a69d6b70e2c94de5271 sd-dhcp6-client: Save a DHCPv6 lease also with Information Reply As the lease structure contains interesting information, save it also for the Information Reply. --- diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c index 85bb1f3a8f5..a88a6f4b4c2 100644 --- a/src/libsystemd-network/sd-dhcp6-client.c +++ b/src/libsystemd-network/sd-dhcp6-client.c @@ -807,10 +807,8 @@ static int client_receive_reply(sd_dhcp6_client *client, DHCP6Message *reply, client->lease = sd_dhcp6_lease_unref(client->lease); } - if (client->state != DHCP6_STATE_INFORMATION_REQUEST) { - client->lease = lease; - lease = NULL; - } + client->lease = lease; + lease = NULL; return DHCP6_STATE_BOUND; }