diff options
author | Colin Smith <colin@pfsense.org> | 2005-04-07 16:47:06 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-04-07 16:47:06 +0000 |
commit | f9015e1edadea4ddce244228ab498f1f276860b8 (patch) | |
tree | 5a423aac32c32e218ca17d283ec111cf9efb162b /etc/inc | |
parent | 853167d28a061f089ef7fff5b140ea6cbcf0dac5 (diff) | |
download | pfsense-f9015e1edadea4ddce244228ab498f1f276860b8.zip pfsense-f9015e1edadea4ddce244228ab498f1f276860b8.tar.gz |
Return -1 upon communication (or other) error.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 9ed7cd8..7b53979 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1021,6 +1021,8 @@ function check_firmware_version() { $msg = new XML_RPC_Message('pfsense.get_firmware_version', $params); $cli = new XML_RPC_Client($firmwarepath, $firmwareurl); $resp = $cli->send($msg); + if(!$resp) return -1; + if($resp->faultCode()) return -1; return $resp->value(); } |