mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 03:30:14 +01:00
libnm: fix rejecting NMSettingVlan with id >= 4095
Without it, clients can wrongly create VLan settings with ID 4095, which triggers assertions in NetworkManager. Fixes:8715d61437(cherry picked from commit159cd4836f)
This commit is contained in:
parent
b2ab1f4b61
commit
8db2ca661f
1 changed files with 1 additions and 0 deletions
|
|
@ -670,6 +670,7 @@ verify (NMSetting *setting, NMConnection *connection, GError **error)
|
|||
_("the vlan id must be in range 0-4094 but is %u"),
|
||||
priv->id);
|
||||
g_prefix_error (error, "%s.%s: ", NM_SETTING_VLAN_SETTING_NAME, NM_SETTING_VLAN_ID);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (priv->flags & ~NM_VLAN_FLAGS_ALL) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue