summaryrefslogtreecommitdiff
path: root/src/libsystemd-network
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2015-07-10 11:31:50 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2015-08-21 11:23:21 +0300
commit9d89d1ae71cb298218e35a69d6b70e2c94de5271 (patch)
tree7b8d54b52cae903cb9e38f483864bd3b2e247bbf /src/libsystemd-network
parent4e3e6679e8f73b83d38e4b20d8b025e12991d1cb (diff)
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.
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r--src/libsystemd-network/sd-dhcp6-client.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c
index 85bb1f3a8f..a88a6f4b4c 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;
}