mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 15:30:11 +01:00
ifcfg-rh: reject vlan id of value 4096
Maybe we should also reject 0 and 4095, but for now leave it.
This commit is contained in:
parent
a85c3db2f0
commit
c949e1c429
1 changed files with 1 additions and 1 deletions
|
|
@ -4641,7 +4641,7 @@ make_vlan_setting (shvarFile *ifcfg,
|
|||
|
||||
value = svGetValue (ifcfg, "VLAN_ID", FALSE);
|
||||
if (value) {
|
||||
vlan_id = _nm_utils_ascii_str_to_int64 (value, 10, 0, 4096, -1);
|
||||
vlan_id = _nm_utils_ascii_str_to_int64 (value, 10, 0, 4095, -1);
|
||||
if (vlan_id == -1) {
|
||||
g_set_error (error, NM_SETTINGS_ERROR, NM_SETTINGS_ERROR_INVALID_CONNECTION,
|
||||
"Invalid VLAN_ID '%s'", value);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue