summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-08-25 18:51:57 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-08-25 18:51:57 -0300
commit6f3f4683f50a00da93e0af7258fcd5541e133055 (patch)
tree0d81caf332dd702fae80fa6ba6a7174b56976524 /usr/local/www/vpn_ipsec.php
parenteab05c003633e253869ede8fc72a55c8d3a3ccbf (diff)
downloadpfsense-6f3f4683f50a00da93e0af7258fcd5541e133055.zip
pfsense-6f3f4683f50a00da93e0af7258fcd5541e133055.tar.gz
Fix phase2 removal, p2index points to unique ide and not to array index
Diffstat (limited to 'usr/local/www/vpn_ipsec.php')
-rw-r--r--usr/local/www/vpn_ipsec.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php
index 62e7dc5..75118b5 100644
--- a/usr/local/www/vpn_ipsec.php
+++ b/usr/local/www/vpn_ipsec.php
@@ -102,7 +102,7 @@ if ($_GET['act'] == "delph1")
if ($_GET['act'] == "delph2")
{
- if ($a_phase1[$_GET['p1index']] && $a_phase2[$_GET['p2index']]) {
+ if ($a_phase1[$_GET['p1index']]) {
/* remove the phase2 entry */
foreach ($a_phase2 as $ph2idx => $ph2) {
if ($ph2['uniqid'] == $_GET['p2index']) {
OpenPOWER on IntegriCloud