From 59c2ea378009024ae2f8e24db746f996233e83d1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 11 Jan 2010 01:05:57 -0500 Subject: Handle faultCode() --- etc/inc/filter.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'etc/inc') 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); -- cgit v1.1