summaryrefslogtreecommitdiffstats
path: root/etc/rc.filter_synchronize
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-11-16 16:29:02 +0000
committerErmal <eri@pfsense.org>2010-11-16 16:29:02 +0000
commit55910da79840bc37e6001e323de3e7900c3175d1 (patch)
tree73e1ec328ba0196c4327be0f3137f1b045d47f94 /etc/rc.filter_synchronize
parentb878ad364aca9434ec160724a6e8479bc9402066 (diff)
downloadpfsense-55910da79840bc37e6001e323de3e7900c3175d1.zip
pfsense-55910da79840bc37e6001e323de3e7900c3175d1.tar.gz
Tighten check even more. Ticket #1006.
Diffstat (limited to 'etc/rc.filter_synchronize')
-rwxr-xr-xetc/rc.filter_synchronize2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.filter_synchronize b/etc/rc.filter_synchronize
index 34198b4..dede6ba 100755
--- a/etc/rc.filter_synchronize
+++ b/etc/rc.filter_synchronize
@@ -185,7 +185,7 @@ function carp_sync_xml($url, $password, $sections, $port = 80, $method = 'pfsens
$cli->setDebug(1);
/* send our XMLRPC message and timeout after 240 seconds */
$resp = $cli->send($msg, "240");
- if(!$resp) {
+ if(!is_object($resp)) {
$error = "A communications error occured while attempting XMLRPC sync with username {$username} {$url}:{$port}.";
log_error($error);
file_notice("sync_settings", $error, "Settings Sync", "");
OpenPOWER on IntegriCloud