summaryrefslogtreecommitdiffstats
path: root/etc/rc.filter_synchronize
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-10 19:10:10 +0000
committerErmal <eri@pfsense.org>2010-12-10 19:10:10 +0000
commit52a93b82398c79c80418e5651ff0d12c1e3b2421 (patch)
tree75d73906f9d49dc7b5f8343327a542029a2ae0ab /etc/rc.filter_synchronize
parenta79c72d7098552d123922828660e51d445e1c293 (diff)
downloadpfsense-52a93b82398c79c80418e5651ff0d12c1e3b2421.zip
pfsense-52a93b82398c79c80418e5651ff0d12c1e3b2421.tar.gz
If we fail to authenticate consider it as fatal since nothing else can be done.
Diffstat (limited to 'etc/rc.filter_synchronize')
-rwxr-xr-xetc/rc.filter_synchronize4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.filter_synchronize b/etc/rc.filter_synchronize
index 7a4f1e1..0d9ee01 100755
--- a/etc/rc.filter_synchronize
+++ b/etc/rc.filter_synchronize
@@ -118,7 +118,7 @@ function carp_check_version($url, $password, $port = 80, $method = 'pfsense.host
if (trim($parsed_response) == "Authentication failed") {
$error = "A authentication failure occurred while trying to access {$url}:{$port} ({$method}).";
log_error($error);
- return false;
+ exit;
}
} else {
if (!isset($parsed_response['config_version']) ||
@@ -253,7 +253,7 @@ function carp_sync_xml($url, $password, $sections, $port = 80, $method = 'pfsens
if(!is_array($parsed_response) && trim($parsed_repsonse) == "Authentication failed") {
$error = "A authentication failure occurred while trying to access {$url}:{$port} ($method).";
log_error($error);
- break;
+ exit;
} else
log_error("XMLRPC sync successfully completed with {$url}:{$port}.");
$numberofruns = 3;
OpenPOWER on IntegriCloud