diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-08-11 14:13:32 -0600 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-08-11 14:13:32 -0600 |
commit | ac8c5e564341279a3a82700ab6dc3ebd61ae52da (patch) | |
tree | 9a61207446c527d2cd228fccf930ed952ac538de | |
parent | 0c450e7186b6436597f77615e3fe935ddfc0bf28 (diff) | |
download | pfsense-ac8c5e564341279a3a82700ab6dc3ebd61ae52da.zip pfsense-ac8c5e564341279a3a82700ab6dc3ebd61ae52da.tar.gz |
Do not try to bring down a CARP VIP for an entry that does not exist yet. Fixes #819
-rwxr-xr-x | usr/local/www/firewall_virtual_ip_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index 6a7c198..e215253 100755 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -149,7 +149,7 @@ if ($_POST) { } else if ($parent_sn != $_POST['subnet_bits']) $input_errors[] = gettext("Subnet bits needs to be the same as the parent interface."); - if ($a_vip[$id]['vhid'] != $_POST['vhid']) + if (isset($id) && ($a_vip[$id]) && $a_vip[$id]['vhid'] != $_POST['vhid']) interface_vip_bring_down($a_vip[$id]); } |