mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 21:50:18 +01:00
device: fix changing firewall zone during _set_state_full()
For regular devices that don't have a separate ip_iface/ip_ifindex,
the ip_ifindex is left at zero. Hence, the condition is always
true and does not work as intended, resulting in setting the
firewall zone twice.
Fixes: 7cf5c326bc
This commit is contained in:
parent
acf1067a45
commit
baa8b4029c
1 changed files with 1 additions and 1 deletions
|
|
@ -12663,7 +12663,7 @@ _set_state_full (NMDevice *self,
|
|||
applied_connection = nm_device_get_applied_connection (self);
|
||||
|
||||
if ( applied_connection
|
||||
&& priv->ifindex != priv->ip_ifindex
|
||||
&& priv->ip_iface
|
||||
&& !nm_device_sys_iface_state_is_external (self)) {
|
||||
NMSettingConnection *s_con;
|
||||
const char *zone;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue