about summary refs log tree commit diff
path: root/src/devices/nm-device-bridge.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2019-08-06 22:47:09 +0200
committerMichael Biebl <biebl@debian.org>2019-08-06 22:47:09 +0200
commit665270502c3d7c0d002ad76fefb1b7699794cd49 (patch)
tree9bc6f4f79278c2a719e1839188f763655a6370ca /src/devices/nm-device-bridge.c
parent3192a21b21d4a9d276a7f2ef4e4b0fcf3165d9eb (diff)
parent5c79b900b59a5ad162ecc836e424468207ff031e (diff)
Update upstream source from tag 'upstream/1.20.0'
Update to upstream version '1.20.0'
with Debian dir 832bc2b5ac5f253004165f6354c938efbe172206
Diffstat (limited to 'src/devices/nm-device-bridge.c')
-rw-r--r--src/devices/nm-device-bridge.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/devices/nm-device-bridge.c b/src/devices/nm-device-bridge.c
index ade9eb0d..91d824b3 100644
--- a/src/devices/nm-device-bridge.c
+++ b/src/devices/nm-device-bridge.c
@@ -626,6 +626,12 @@ release_slave (NMDevice *device,
 	NMDeviceBridge *self = NM_DEVICE_BRIDGE (device);
 	gboolean success;
 	int ifindex_slave;
+	int ifindex;
+
+	ifindex = nm_device_get_ifindex (device);
+	if (   ifindex <= 0
+	    || !nm_platform_link_get (nm_device_get_platform (device), ifindex))
+		configure = FALSE;
 
 	ifindex_slave = nm_device_get_ip_ifindex (slave);