|
|
b1b5c9 |
From f85322d23536c1004db8ddc722d4f2f6abc56aba Mon Sep 17 00:00:00 2001
|
|
|
b1b5c9 |
From: Beniamino Galvani <bgalvani@redhat.com>
|
|
|
b1b5c9 |
Date: Tue, 23 Apr 2019 11:10:33 +0200
|
|
|
b1b5c9 |
Subject: [PATCH] settings: fix failed assertion
|
|
|
b1b5c9 |
|
|
|
b1b5c9 |
Fix the following assertion failure:
|
|
|
b1b5c9 |
|
|
|
b1b5c9 |
g_object_ref: assertion 'G_IS_OBJECT (object)' failed.
|
|
|
b1b5c9 |
|
|
|
b1b5c9 |
nm_settings_add_connection() can return a NULL connection.
|
|
|
b1b5c9 |
|
|
|
b1b5c9 |
Fixes: f034f17ff69c ('settings: keep the added connection alive for a bit longer')
|
|
|
b1b5c9 |
(cherry picked from commit 48ce3628c528553d4105ed443934d733998e81b4)
|
|
|
b1b5c9 |
(cherry picked from commit d80818e6cad94def1402be8326274bde998aa276)
|
|
|
b1b5c9 |
---
|
|
|
b1b5c9 |
src/settings/nm-settings.c | 2 +-
|
|
|
b1b5c9 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
b1b5c9 |
|
|
|
b1b5c9 |
diff --git a/src/settings/nm-settings.c b/src/settings/nm-settings.c
|
|
|
b1b5c9 |
index 8e18a33e0..e594860bc 100644
|
|
|
b1b5c9 |
--- a/src/settings/nm-settings.c
|
|
|
b1b5c9 |
+++ b/src/settings/nm-settings.c
|
|
|
b1b5c9 |
@@ -1174,7 +1174,7 @@ pk_add_cb (NMAuthChain *chain,
|
|
|
b1b5c9 |
* because it's found to be incompatible with the device on AddAndActivate).
|
|
|
b1b5c9 |
* But we need to keep it alive for a bit longer, precisely to check wehther
|
|
|
b1b5c9 |
* it's still known to the setting manager. */
|
|
|
b1b5c9 |
- g_object_ref (added);
|
|
|
b1b5c9 |
+ nm_g_object_ref (added);
|
|
|
b1b5c9 |
}
|
|
|
b1b5c9 |
|
|
|
b1b5c9 |
callback = nm_auth_chain_get_data (chain, "callback");
|
|
|
b1b5c9 |
--
|
|
|
b1b5c9 |
2.20.1
|
|
|
b1b5c9 |
|