mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 18:00:10 +01:00
policy: fix possible crash on deactivating connection on removal
_deactivate_if_active() takes a NMPolicy instance while the connection_removed signal handler takes a NMPolicyPrivate pointer.
This commit is contained in:
parent
b6efac9ec2
commit
c9db2c17aa
1 changed files with 4 additions and 1 deletions
|
|
@ -2370,7 +2370,10 @@ connection_removed (NMSettings *settings,
|
|||
NMSettingsConnection *connection,
|
||||
gpointer user_data)
|
||||
{
|
||||
_deactivate_if_active (user_data, connection);
|
||||
NMPolicyPrivate *priv = user_data;
|
||||
NMPolicy *self = _PRIV_TO_SELF (priv);
|
||||
|
||||
_deactivate_if_active (self, connection);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue