summary refs log tree commit diff
path: root/src/core/devices
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2022-05-26 22:00:52 +0200
committerMichael Biebl <biebl@debian.org>2022-05-26 22:00:52 +0200
commited3fbd48dfdf52a008aa4e281b3ab3a8c08c4900 (patch)
tree751dbc6a721e96f7af9f689e443a7061ad06f3a8 /src/core/devices
parent34881d66ffb4eaa113e318a7bc09f7ba3c7e4aec (diff)
parentb3b81846241e51b3e2bfb34c1b5af385cdcdf894 (diff)
Merge branch 'debian/master' into debian/bullseye-backports
Diffstat (limited to 'src/core/devices')
-rw-r--r--src/core/devices/nm-device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c
index 1d9f235a..70b52b1a 100644
--- a/src/core/devices/nm-device.c
+++ b/src/core/devices/nm-device.c
@@ -6585,7 +6585,8 @@ device_link_changed(gpointer user_data)
          * so that it theoretically would also work for NMVpnConnection (although,
          * NMVpnConnection should become like a regular device, akin to NMDevicePpp).
          */
-        if (!nm_device_sys_iface_state_is_external(self))
+        if (priv->state >= NM_DEVICE_STATE_IP_CONFIG && priv->state <= NM_DEVICE_STATE_ACTIVATED
+            && !nm_device_sys_iface_state_is_external(self))
             nm_device_l3cfg_commit(self, NM_L3_CFG_COMMIT_TYPE_REAPPLY, FALSE);
     }