diff options
author | jim-p <jimp@pfsense.org> | 2015-12-01 13:48:29 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2015-12-01 13:48:29 -0500 |
commit | 4e5e7540f2855987b4fad834d08bc18b18e0d836 (patch) | |
tree | 6bad3a2854b21b10cf79f7e49a90d37c49d751d7 /src/usr/local/www | |
parent | cd8f2f2bf52d0781fc115c3b4c694beb8eaef1f3 (diff) | |
download | pfsense-4e5e7540f2855987b4fad834d08bc18b18e0d836.zip pfsense-4e5e7540f2855987b4fad834d08bc18b18e0d836.tar.gz |
Nuke openvpn_cleanup_csc, the job is done better by openvpn_delete_csc
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/vpn_openvpn_csc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/vpn_openvpn_csc.php b/src/usr/local/www/vpn_openvpn_csc.php index d5ebde4..ddb67b5 100644 --- a/src/usr/local/www/vpn_openvpn_csc.php +++ b/src/usr/local/www/vpn_openvpn_csc.php @@ -291,14 +291,14 @@ if ($_POST) { } if (isset($id) && $a_csc[$id]) { - $old_csc_cn = $a_csc[$id]['common_name']; + $old_csc = $a_csc[$id]; $a_csc[$id] = $csc; } else { $a_csc[] = $csc; } - if (!empty($old_csc_cn)) { - openvpn_cleanup_csc($old_csc_cn); + if (!empty($old_csc['common_name'])) { + openvpn_delete_csc($old_csc); } openvpn_resync_csc($csc); write_config(); |