mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 11:40:08 +01:00
wireguard: fix use-after free in _peers_remove()
(cherry picked from commit85c26341a2) (cherry picked from commita3f9ab473b)
This commit is contained in:
parent
52dcdc98e8
commit
8bcfda364e
1 changed files with 1 additions and 1 deletions
|
|
@ -221,7 +221,7 @@ _peers_remove (NMDeviceWireGuardPrivate *priv,
|
|||
nm_clear_g_cancellable (&peer_data->ep_resolv.cancellable);
|
||||
g_slice_free (PeerData, peer_data);
|
||||
|
||||
if (c_list_is_empty (&peer_data->lst_peers)) {
|
||||
if (c_list_is_empty (&priv->lst_peers_head)) {
|
||||
nm_clear_g_source (&priv->resolve_next_try_id);
|
||||
nm_clear_g_source (&priv->link_config_delayed_id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue