mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 12:28:11 +02:00
libnm: fix nm_vpn_plugin_old_set_connection() for connection == NULL
This commit is contained in:
parent
dbf1794070
commit
08fbe75edd
1 changed files with 2 additions and 1 deletions
|
|
@ -109,7 +109,8 @@ nm_vpn_plugin_old_set_connection (NMVpnPluginOld *plugin,
|
||||||
|
|
||||||
g_clear_object (&priv->connection);
|
g_clear_object (&priv->connection);
|
||||||
|
|
||||||
priv->connection = g_object_ref (connection);
|
if (connection)
|
||||||
|
priv->connection = g_object_ref (connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue