mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
nm: Fix NULL-pointer dereference when handling TUN device failure
This commit is contained in:
parent
f7d04ba6c4
commit
f738753abc
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user