diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-03-04 17:39:22 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-03-04 19:13:55 +0200 |
commit | 82e5f6c24ffef1fdc6ef2a1df8be21e0bf27b715 (patch) | |
tree | 005a3c20ff2a1d5aec828c6a0ffecabac8ad5988 /indra/newview | |
parent | 85f6feb14a727d09ddd7a67fc557dcae67e00727 (diff) |
SL-12421 Viewer's certificate validation does not reject connections
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llxmlrpctransaction.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/indra/newview/llxmlrpctransaction.cpp b/indra/newview/llxmlrpctransaction.cpp index 8e2539606b..32c8ce66a0 100644 --- a/indra/newview/llxmlrpctransaction.cpp +++ b/indra/newview/llxmlrpctransaction.cpp @@ -240,16 +240,16 @@ void LLXMLRPCTransaction::Handler::onCompleted(LLCore::HttpHandle handle, if (!status) { + mImpl->setHttpStatus(status); + LLSD errordata = status.getErrorData(); + mImpl->mErrorCertData = errordata; + if ((status.toULong() != CURLE_SSL_PEER_CERTIFICATE) && (status.toULong() != CURLE_SSL_CACERT)) { // if we have a curl error that's not already been handled - // (a non cert error), then generate the error message as + // (a non cert error), then generate the warning message as // appropriate - mImpl->setHttpStatus(status); - LLSD errordata = status.getErrorData(); - mImpl->mErrorCertData = errordata; - LL_WARNS() << "LLXMLRPCTransaction error " << status.toHex() << ": " << status.toString() << LL_ENDL; LL_WARNS() << "LLXMLRPCTransaction request URI: " |