If cmciConnect2 fails to load libcimcClientXML.so or libcimcClientSfcbLocal.so, error reporting to the caller doesn't happen.
cmciConnect2 returns an error code and message via CMPIStatus* to the caller. The message part is of CMPIString* which needs ConnectionControl.ccEnv in native_new_CMPIString.
If the above mentioned .so files are not accessible, NewCIMCEnv() fails and ConnectionControl.ccEnv cannot be set. The error message returned by NewCIMCEnv cannot be returned to the caller.
The attached patch prints the error messages from NewCIMCEnv to stderr in this case.
Log in to post a comment.