diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 82286ec16..984e2f815 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -2534,6 +2534,7 @@ udev_device_removed (NMPlatform *platform, g_hash_table_iter_init (&iter, priv->udev_devices); while (g_hash_table_iter_next (&iter, &key, &value)) { if ((GUdevDevice *)value == udev_device) { + ifindex = GPOINTER_TO_INT (key); g_hash_table_iter_remove (&iter); break; }