mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-11 07:10:36 +01:00
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:
parent
2e8f40f2c9
commit
aa71dbc6c4
1 changed files with 5 additions and 1 deletions
|
|
@ -6984,12 +6984,16 @@ fw_change_zone_cb_ip_check (NMFirewallManager *firewall_manager,
|
|||
gpointer user_data)
|
||||
{
|
||||
NMDevice *self = user_data;
|
||||
NMDevicePrivate *priv;
|
||||
|
||||
if (!fw_change_zone_handle (self, call_id, error))
|
||||
return;
|
||||
|
||||
/* FIXME: fail the device on error? */
|
||||
nm_device_start_ip_check (self);
|
||||
|
||||
priv = NM_DEVICE_GET_PRIVATE (self);
|
||||
if (priv->ip4_state == IP_DONE || priv->ip6_state == IP_DONE)
|
||||
nm_device_start_ip_check (self);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue