mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 06:40:18 +01:00
device: fix assertion failure configuring bridge ports
Fixes: 177ee2d7bf ('device/bridge: code cleanup in commit_option()')
This commit is contained in:
parent
25bec53602
commit
d213c3cd1a
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue