mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix #3209 editing unassigned VLAN tag can change an assigned interface - RELENG_2_2
Might as well fix this bug in 2.2.* as well, since it is easy and was obviously an error.
This commit is contained in:
parent
ec0643f7f1
commit
ddba2645f9
@ -116,7 +116,7 @@ if ($_POST) {
|
||||
if (isset($id) && $a_vlans[$id]) {
|
||||
if (($a_vlans[$id]['if'] != $_POST['if']) || ($a_vlans[$id]['tag'] != $_POST['tag'])) {
|
||||
if (!empty($a_vlans[$id]['vlanif'])) {
|
||||
$confif = convert_real_interface_to_friendly_interface_name($vlan['vlanif']);
|
||||
$confif = convert_real_interface_to_friendly_interface_name($a_vlans[$id]['vlanif']);
|
||||
// Destroy previous vlan
|
||||
pfSense_interface_destroy($a_vlans[$id]['vlanif']);
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user