nm: Fix NULL-pointer dereference when handling TUN device failure

This commit is contained in:
Tobias Brunner 2014-04-09 16:35:46 +02:00
parent f7d04ba6c4
commit f738753abc

View 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");