nm: Fix NULL-pointer dereference when handling TUN device failure
This commit is contained in:
@@ -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,
|
g_set_error(err, NM_VPN_PLUGIN_ERROR, NM_VPN_PLUGIN_ERROR_LAUNCH_FAILED,
|
||||||
"Failed to create dummy TUN device.");
|
"Failed to create dummy TUN device.");
|
||||||
gateway->destroy(gateway);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
address = nm_setting_vpn_get_data_item(vpn, "address");
|
address = nm_setting_vpn_get_data_item(vpn, "address");
|
||||||
|
|||||||
Reference in New Issue
Block a user