summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-06-18 10:04:19 -0400
committerjim-p <jimp@pfsense.org>2013-06-18 10:06:16 -0400
commitbca506d4318970a497f0b369e3c6558d359f37f9 (patch)
tree28ca2955f5f697d0615f82f2ebb00f406f929e2e
parentef01b77f6dc5e2f4ba254739a1792207e7b52a09 (diff)
downloadpfsense-bca506d4318970a497f0b369e3c6558d359f37f9.zip
pfsense-bca506d4318970a497f0b369e3c6558d359f37f9.tar.gz
Change test after IPsec apply to check for any value >= 0. If a user has hostnames vpn_ipsec_configure() now returns the number of hostnames, so the previous test failed and the "apply changes" button would never go away.
-rwxr-xr-xusr/local/www/vpn_ipsec.php2
-rwxr-xr-xusr/local/www/vpn_ipsec_mobile.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php
index 4f154b7..9031e34 100755
--- a/usr/local/www/vpn_ipsec.php
+++ b/usr/local/www/vpn_ipsec.php
@@ -63,7 +63,7 @@ if ($_POST) {
/* reload the filter in the background */
filter_configure();
$savemsg = get_std_save_message($retval);
- if ($retval == 0) {
+ if ($retval >= 0) {
if (is_subsystem_dirty('ipsec'))
clear_subsystem_dirty('ipsec');
}
diff --git a/usr/local/www/vpn_ipsec_mobile.php b/usr/local/www/vpn_ipsec_mobile.php
index 4205af3..30927c2 100755
--- a/usr/local/www/vpn_ipsec_mobile.php
+++ b/usr/local/www/vpn_ipsec_mobile.php
@@ -112,7 +112,7 @@ if ($_POST['apply']) {
$retval = 0;
$retval = vpn_ipsec_configure();
$savemsg = get_std_save_message($retval);
- if ($retval == 0)
+ if ($retval >= 0)
if (is_subsystem_dirty('ipsec'))
clear_subsystem_dirty('ipsec');
}
OpenPOWER on IntegriCloud