diff options
author | Scott Ullrich <sullrich@pfSense.org> | 2010-01-11 01:05:57 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfSense.org> | 2010-01-11 01:05:57 -0500 |
commit | 59c2ea378009024ae2f8e24db746f996233e83d1 (patch) | |
tree | 4cd3df1156db0b36400253207311022bd793be26 | |
parent | bd5b06633fc7499b820173f40766d79f9d46c923 (diff) | |
download | pfsense-59c2ea378009024ae2f8e24db746f996233e83d1.zip pfsense-59c2ea378009024ae2f8e24db746f996233e83d1.tar.gz |
Handle faultCode()
-rw-r--r-- | etc/inc/filter.inc | 5 |
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); |