mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-01 15:01:48 +01:00
core: fix dhcp leases in l3cd cloning.
This will copy DHCP lease from src (not self), fixing an assertion in nm_l3_config_data_new_clone. Resolves: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1620 Fixes:55b722820d('l3cfg: fix nm_l3_config_data_new_clone() to make exact copy') (cherry picked from commita25d593922) (cherry picked from commit61e781c4f5) (cherry picked from commitfdc909741d) (cherry picked from commita009cabcb4)
This commit is contained in:
parent
5ab446043c
commit
64e5220398
1 changed files with 2 additions and 2 deletions
|
|
@ -3410,8 +3410,8 @@ nm_l3_config_data_merge(NML3ConfigData *self,
|
|||
g_steal_pointer(&self->dhcp_lease_x[1]);
|
||||
|
||||
self->source = src->source;
|
||||
self->dhcp_lease_x[0] = nm_dhcp_lease_ref(self->dhcp_lease_x[0]);
|
||||
self->dhcp_lease_x[1] = nm_dhcp_lease_ref(self->dhcp_lease_x[1]);
|
||||
self->dhcp_lease_x[0] = nm_dhcp_lease_ref(src->dhcp_lease_x[0]);
|
||||
self->dhcp_lease_x[1] = nm_dhcp_lease_ref(src->dhcp_lease_x[1]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue