mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 02:28:18 +02: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
This commit is contained in:
parent
f80d0eb29e
commit
159cd4836f
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"),
|
_("the vlan id must be in range 0-4094 but is %u"),
|
||||||
priv->id);
|
priv->id);
|
||||||
g_prefix_error (error, "%s.%s: ", NM_SETTING_VLAN_SETTING_NAME, NM_SETTING_VLAN_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) {
|
if (priv->flags & ~NM_VLAN_FLAGS_ALL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue