Blame SOURCES/1002-settings-fix-failed-assertion-rh1707261.patch

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