From 08fbe75edd6bfcaa03541caa2db830845c4c7e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Tue, 19 May 2015 14:43:36 +0200 Subject: libnm: fix nm_vpn_plugin_old_set_connection() for connection == NULL --- libnm/nm-vpn-plugin-old.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libnm/nm-vpn-plugin-old.c b/libnm/nm-vpn-plugin-old.c index 59ea65b413..7c42184b10 100644 --- a/libnm/nm-vpn-plugin-old.c +++ b/libnm/nm-vpn-plugin-old.c @@ -109,7 +109,8 @@ nm_vpn_plugin_old_set_connection (NMVpnPluginOld *plugin, g_clear_object (&priv->connection); - priv->connection = g_object_ref (connection); + if (connection) + priv->connection = g_object_ref (connection); } /** -- cgit v1.2.1