diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-08-25 18:51:57 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-08-25 18:51:57 -0300 |
commit | 6f3f4683f50a00da93e0af7258fcd5541e133055 (patch) | |
tree | 0d81caf332dd702fae80fa6ba6a7174b56976524 /usr/local/www/vpn_ipsec.php | |
parent | eab05c003633e253869ede8fc72a55c8d3a3ccbf (diff) | |
download | pfsense-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.php | 2 |
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']) { |