summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-09-13 17:34:04 +0000
committerColin Smith <colin@pfsense.org>2005-09-13 17:34:04 +0000
commitdbac8df230833dd633ebc2baa6c665058b8d1e22 (patch)
treec3d51ac3cec9643fac87c24e587f4512138cca9e
parentba13a6e616e4b0e5e7e20d05c13009f5e49d8103 (diff)
downloadpfsense-dbac8df230833dd633ebc2baa6c665058b8d1e22.zip
pfsense-dbac8df230833dd633ebc2baa6c665058b8d1e22.tar.gz
Use $cli->errstr instead of $resp.
-rw-r--r--etc/inc/filter.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 3f97e48..52043f1 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -2361,8 +2361,8 @@ function carp_sync_xml($url, $password, $section, $section_xml, $method = 'pfsen
$cli = new XML_RPC_Client('/xmlrpc.php', $url, $port);
$cli->setCredentials('admin', $password);
$resp = $cli->send($msg);
- if($resp == false) {
- log_error("errors occured while syncing XML configuration data to {$url} on port {$port} : {$resp}");
+ if(!$resp) {
+ log_error("errors occured while syncing XML configuration data to {$url} on port {$port} : {$cli->errstr}");
} else {
log_error("end synchronize XML configuration data to {$url} on port {$port}");
}
@@ -2451,4 +2451,4 @@ function return_vpn_subnet($adr) {
return " # error - {$adr['network']} ";
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud