diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2019-04-23 11:10:33 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2019-05-06 10:09:10 +0200 |
commit | 48ce3628c528553d4105ed443934d733998e81b4 (patch) | |
tree | 6b15f880d7e7b15779026900b658e06836af2a7f | |
parent | 79d7991eaf64885ca9a74b48f1a83f3ec2bd61cb (diff) | |
download | NetworkManager-48ce3628c528553d4105ed443934d733998e81b4.tar.gz |
settings: fix failed assertion
Fix the following assertion failure:
g_object_ref: assertion 'G_IS_OBJECT (object)' failed.
nm_settings_add_connection() can return a NULL connection.
Fixes: f034f17ff69c ('settings: keep the added connection alive for a bit longer')
-rw-r--r-- | src/settings/nm-settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings/nm-settings.c b/src/settings/nm-settings.c index 8e18a33e0d..e594860bcb 100644 --- a/src/settings/nm-settings.c +++ b/src/settings/nm-settings.c @@ -1174,7 +1174,7 @@ pk_add_cb (NMAuthChain *chain, * because it's found to be incompatible with the device on AddAndActivate). * But we need to keep it alive for a bit longer, precisely to check wehther * it's still known to the setting manager. */ - g_object_ref (added); + nm_g_object_ref (added); } callback = nm_auth_chain_get_data (chain, "callback"); |