nm: Fix NULL-pointer dereference when handling TUN device failure
authorTobias Brunner <tobias@strongswan.org>
Wed, 9 Apr 2014 14:35:46 +0000 (16:35 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 9 Apr 2014 14:35:46 +0000 (16:35 +0200)
src/charon-nm/nm/nm_service.c

index 3ee885a..67366a0 100644 (file)
@@ -329,7 +329,6 @@ static gboolean connect_(NMVPNPlugin *plugin, NMConnection *connection,
        {
                g_set_error(err, NM_VPN_PLUGIN_ERROR, NM_VPN_PLUGIN_ERROR_LAUNCH_FAILED,
                                        "Failed to create dummy TUN device.");
-               gateway->destroy(gateway);
                return FALSE;
        }
        address = nm_setting_vpn_get_data_item(vpn, "address");