summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-03-05 13:43:58 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-03-05 13:43:58 +0200
commit4e98602746d513ec82a9264a814a05a23ea22d5b (patch)
treea44a750fd658f2575f75ab546e6e8805cc87443a /indra
parent82e5f6c24ffef1fdc6ef2a1df8be21e0bf27b715 (diff)
SL-12421 Don't fail silently, show an error
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llsechandler_basic.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/llsechandler_basic.cpp b/indra/newview/llsechandler_basic.cpp
index 55e49100c3..8e52480644 100644
--- a/indra/newview/llsechandler_basic.cpp
+++ b/indra/newview/llsechandler_basic.cpp
@@ -78,16 +78,14 @@ LLBasicCertificate::LLBasicCertificate(const std::string& pem_cert,
BIO * pem_bio = BIO_new_mem_buf((void*)pem_cert.c_str(), pem_cert.length());
if(pem_bio == NULL)
{
- LL_WARNS("SECAPI") << "Could not allocate an openssl memory BIO." << LL_ENDL;
- LLTHROW(LLInvalidCertificate(LLSD::emptyMap()));
+ LL_ERRS("SECAPI") << "Could not allocate an openssl memory BIO." << LL_ENDL;
}
mCert = NULL;
PEM_read_bio_X509(pem_bio, &mCert, 0, NULL);
BIO_free(pem_bio);
if (!mCert)
{
- LL_WARNS("SECAPI") << "Could not decode certificate to x509." << LL_ENDL;
- LLTHROW(LLInvalidCertificate(LLSD::emptyMap()));
+ LL_ERRS("SECAPI") << "Could not decode certificate to x509." << LL_ENDL;
}
}