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.
This commit is contained in:
@@ -807,10 +807,8 @@ static int client_receive_reply(sd_dhcp6_client *client, DHCP6Message *reply,
|
|||||||
client->lease = sd_dhcp6_lease_unref(client->lease);
|
client->lease = sd_dhcp6_lease_unref(client->lease);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (client->state != DHCP6_STATE_INFORMATION_REQUEST) {
|
client->lease = lease;
|
||||||
client->lease = lease;
|
lease = NULL;
|
||||||
lease = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return DHCP6_STATE_BOUND;
|
return DHCP6_STATE_BOUND;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user