device: avoid a crash when L3 configuration fails
Don't call the IP check until at either IPv4 or IPv6 is actually configured.
This commit is contained in:
@@ -6984,11 +6984,15 @@ fw_change_zone_cb_ip_check (NMFirewallManager *firewall_manager,
|
|||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
NMDevice *self = user_data;
|
NMDevice *self = user_data;
|
||||||
|
NMDevicePrivate *priv;
|
||||||
|
|
||||||
if (!fw_change_zone_handle (self, call_id, error))
|
if (!fw_change_zone_handle (self, call_id, error))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* FIXME: fail the device on error? */
|
/* FIXME: fail the device on error? */
|
||||||
|
|
||||||
|
priv = NM_DEVICE_GET_PRIVATE (self);
|
||||||
|
if (priv->ip4_state == IP_DONE || priv->ip6_state == IP_DONE)
|
||||||
nm_device_start_ip_check (self);
|
nm_device_start_ip_check (self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user