summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip_edit.php
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-02-11 20:34:47 +0100
committerErmal LUÇI <eri@pfsense.org>2015-02-11 20:34:58 +0100
commit1c4c5ed2dd5564d225cd1e8d272dad42df3b201e (patch)
tree210ced6dc679c3712da4d7dc7a44ea198c7b1e03 /usr/local/www/firewall_virtual_ip_edit.php
parentb65de5585bb7bffe06750c712b399cd4da10052c (diff)
downloadpfsense-1c4c5ed2dd5564d225cd1e8d272dad42df3b201e.zip
pfsense-1c4c5ed2dd5564d225cd1e8d272dad42df3b201e.tar.gz
Remove dead code and unset vars so next time the code works properly avoiding cache issues.
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rw-r--r--usr/local/www/firewall_virtual_ip_edit.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php
index af28d9d..56374c2 100644
--- a/usr/local/www/firewall_virtual_ip_edit.php
+++ b/usr/local/www/firewall_virtual_ip_edit.php
@@ -182,16 +182,6 @@ if ($_POST) {
if (empty($_POST['password']))
$input_errors[] = gettext("You must specify a CARP password that is shared between the two VHID members.");
- if (is_ipaddrv4($_POST['subnet'])) {
- $parent_ip = get_interface_ip($_POST['interface']);
- $parent_sn = get_interface_subnet($_POST['interface']);
- $subnet = gen_subnet($parent_ip, $parent_sn);
- } else if (is_ipaddrv6($_POST['subnet'])) {
- $parent_ip = get_interface_ipv6($_POST['interface']);
- $parent_sn = get_interface_subnetv6($_POST['interface']);
- $subnet = gen_subnetv6($parent_ip, $parent_sn);
- }
-
if ($_POST['interface'] == 'lo0')
$input_errors[] = gettext("For this type of vip localhost is not allowed.");
else if (strpos($_POST['interface'], '_vip'))
@@ -213,6 +203,7 @@ if ($_POST) {
$cannot_find = $_POST['subnet'] . "/" . $_POST['subnet_bits'] ;
$input_errors[] = sprintf(gettext("Sorry, we could not locate an interface with a matching subnet for %s. Please add an IP alias in this subnet on this interface."),$cannot_find);
}
+ unset($parent_ip, $parent_sn, $subnet);
}
break;
default:
OpenPOWER on IntegriCloud