diff options
author | Matthew Grooms <mgrooms@pfsense.org> | 2008-08-27 04:19:30 +0000 |
---|---|---|
committer | Matthew Grooms <mgrooms@pfsense.org> | 2008-08-27 04:19:30 +0000 |
commit | dc4089399356749c73f75140e39777ee8398fac6 (patch) | |
tree | 8433e8d2b9d13e0102f7632f21c3213e5ca71f4c /usr/local/www/vpn_openvpn_csc.php | |
parent | f432e364b2acdf561eaaef02d110c821ab4cb451 (diff) | |
download | pfsense-dc4089399356749c73f75140e39777ee8398fac6.zip pfsense-dc4089399356749c73f75140e39777ee8398fac6.tar.gz |
Correct some problems with the filter code where we were calling foreach
on data that wasn't necessarily a valid array.
Modify the OpenVPN code to stop passing the array index around and then
immediately obtaining a reference to the array entry. We already have a
reference to the data, just pass it instead. Also add some check to make
certain tap configuration steps more conditional. Make sure we remove
configuration and pid files when they are no longer required. Fix a few
other OpenVPN related bugs.
Diffstat (limited to 'usr/local/www/vpn_openvpn_csc.php')
-rw-r--r-- | usr/local/www/vpn_openvpn_csc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/vpn_openvpn_csc.php b/usr/local/www/vpn_openvpn_csc.php index 1866f75..1469d4e 100644 --- a/usr/local/www/vpn_openvpn_csc.php +++ b/usr/local/www/vpn_openvpn_csc.php @@ -59,7 +59,7 @@ if ($_GET['act'] == "del") { exit; } - openvpn_delete_csc($id); + openvpn_delete_csc($$a_csc[$id]); unset($a_csc[$id]); write_config(); $savemsg = gettext("Client Specific Override successfully deleted")."<br/>"; @@ -212,7 +212,7 @@ if ($_POST) { else $a_csc[] = $csc; - openvpn_resync_csc($id); + openvpn_resync_csc($csc); write_config(); header("Location: vpn_openvpn_csc.php"); |