mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 03:20:18 +01:00
settings: keep connection alive in delete_auth_cb()
Before commit3ecb57fdc4("settings: get rid of callback arguments for nm_settings_connection_delete()") audit logging was done in the callback, which was run by nm_settings_connection_delete() with a reference to the connection to keep it alive. Now we have to keep an extra reference to ensure it doesn't go away. Fixes:3ecb57fdc4
This commit is contained in:
parent
301cf7151b
commit
33cb2f3723
1 changed files with 3 additions and 0 deletions
|
|
@ -1884,8 +1884,11 @@ delete_auth_cb (NMSettingsConnection *self,
|
|||
GError *error,
|
||||
gpointer data)
|
||||
{
|
||||
gs_unref_object NMSettingsConnection *self_keep_alive = NULL;
|
||||
gs_free_error GError *local = NULL;
|
||||
|
||||
self_keep_alive = g_object_ref (self);
|
||||
|
||||
if (error) {
|
||||
nm_audit_log_connection_op (NM_AUDIT_OP_CONN_DELETE, self, FALSE, NULL, subject,
|
||||
error->message);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue