From: Michael Chase-S. <mc...@us...> - 2012-06-07 00:54:47
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SFCB - Small Footprint CIM Broker". The branch, master has been updated via 75653ff204b7b886f2c255f6f99c93318432f40c (commit) from ab71d6d8e7904a5f42fa3bba2204a55cac91dd8b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 75653ff204b7b886f2c255f6f99c93318432f40c Author: Michael Chase-Salerno <br...@li...> Date: Wed Jun 6 20:54:12 2012 -0400 [ 3527920 ] RI and http response codes Fix for curl errors not being caught ----------------------------------------------------------------------- Summary of changes: diff --git a/ChangeLog b/ChangeLog index 8468e6b..afb4290 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-06-06 Michael Chase-Salerno <br...@li...> + + * indCIMXMLExport.c: + [ 3527920 ] RI and http response codes + Fix for curl errors not being caught + 2012-06-01 Michael Chase-Salerno <br...@li...> * control.h, indCIMXMLExport.c, sfcb.cfg.pre.in: diff --git a/indCIMXMLExport.c b/indCIMXMLExport.c index 636091b..159a77c 100644 --- a/indCIMXMLExport.c +++ b/indCIMXMLExport.c @@ -346,8 +346,14 @@ getResponse(CurlData * cd, char **msg) rc = 501; break; default: + if (responseCode != 0) { + // If we got an unrecognized response code, return it + rc = (int)responseCode; + } else { + // Otherwise there was some other curl error, return that + rc = (int)rv; + } *msg = getErrorMessage(rv); - rc = (int)responseCode; break; } return rc; hooks/post-receive -- SFCB - Small Footprint CIM Broker |