diff --git a/src/devices/nm-device-bridge.c b/src/devices/nm-device-bridge.c index dcfef0e100..c6c54344f6 100644 --- a/src/devices/nm-device-bridge.c +++ b/src/devices/nm-device-bridge.c @@ -329,7 +329,10 @@ commit_option (NMDevice *device, NMSetting *setting, const Option *option, gbool GParamSpec *pspec; const char *value; - nm_assert (NM_IS_SETTING_BRIDGE (setting)); + if (slave) + nm_assert (NM_IS_SETTING_BRIDGE_PORT (setting)); + else + nm_assert (NM_IS_SETTING_BRIDGE (setting)); pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (setting), option->name); nm_assert (pspec);