]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-dhcp6-client: Save a DHCPv6 lease also with Information Reply
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 10 Jul 2015 08:31:50 +0000 (11:31 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 21 Aug 2015 08:23:21 +0000 (11:23 +0300)
As the lease structure contains interesting information, save it also
for the Information Reply.

src/libsystemd-network/sd-dhcp6-client.c

index 85bb1f3a8f5fbecb55bdf793d9692e2ec47444df..a88a6f4b4c23b61c27b4c479f4b1882960920d26 100644 (file)
@@ -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;
 }