diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-07 18:35:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-07 18:35:52 +0000 |
commit | 7c99b15cee35d532f796d6f4785d20f6d2c6c793 (patch) | |
tree | 324e5f061d10e2fbadf922db41c8429c6574ea42 /usr/local | |
parent | 219baec833223c5f1b6de74bdeaa66b815f38e89 (diff) | |
download | pfsense-7c99b15cee35d532f796d6f4785d20f6d2c6c793.zip pfsense-7c99b15cee35d532f796d6f4785d20f6d2c6c793.tar.gz |
MFC 7447
Only check against an item if external-address is defined
Ticket #648
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_virtual_ip.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/firewall_virtual_ip.php b/usr/local/www/firewall_virtual_ip.php index 0d16091..e009afe 100755 --- a/usr/local/www/firewall_virtual_ip.php +++ b/usr/local/www/firewall_virtual_ip.php @@ -68,9 +68,11 @@ if ($_GET['act'] == "del") { /* make sure no inbound NAT mappings reference this entry */ if (is_array($config['nat']['rule'])) { foreach ($config['nat']['rule'] as $rule) { - if ($rule['external-address'] == $a_vip[$_GET['id']]['ipaddr']) { - $input_errors[] = "This entry cannot be deleted because it is still referenced by at least one NAT mapping."; - break; + if($rule['external-address'] <> "") { + if ($rule['external-address'] == $a_vip[$_GET['id']]['ipaddr']) { + $input_errors[] = "This entry cannot be deleted because it is still referenced by at least one NAT mapping."; + break; + } } } } |