From c949e1c42944497c826a3d77b3aed1d697064c2b Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 16 May 2016 15:43:56 +0200 Subject: [PATCH] ifcfg-rh: reject vlan id of value 4096 Maybe we should also reject 0 and 4095, but for now leave it. --- src/settings/plugins/ifcfg-rh/reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/plugins/ifcfg-rh/reader.c b/src/settings/plugins/ifcfg-rh/reader.c index 300c0d4c26..e5de03907b 100644 --- a/src/settings/plugins/ifcfg-rh/reader.c +++ b/src/settings/plugins/ifcfg-rh/reader.c @@ -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);