summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfSense.org>2010-01-11 01:05:57 -0500
committerScott Ullrich <sullrich@pfSense.org>2010-01-11 01:05:57 -0500
commit59c2ea378009024ae2f8e24db746f996233e83d1 (patch)
tree4cd3df1156db0b36400253207311022bd793be26
parentbd5b06633fc7499b820173f40766d79f9d46c923 (diff)
downloadpfsense-59c2ea378009024ae2f8e24db746f996233e83d1.zip
pfsense-59c2ea378009024ae2f8e24db746f996233e83d1.tar.gz
Handle faultCode()
-rw-r--r--etc/inc/filter.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index c970092..ba71d04 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -3217,6 +3217,11 @@ 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->faultCode()) {
+ $error = "A communications error occurred while attempting communication with {$url}:{$port} (pfsense.exec_php).";
+ log_error($error);
+ return;
+ }
if(!$resp) {
$error = "A communications error occured while attempting XMLRPC sync with username {$username} {$url}:{$port}.";
log_error($error);
OpenPOWER on IntegriCloud