summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-07-19 16:06:10 +0800
committerErik Kundiman <erik@megapahit.org>2023-07-19 16:06:10 +0800
commit6bcebc33c49f4f1b6180640329793e55026da540 (patch)
treef16a570df6da63c88cd36e0341a01cd7ff9bc19e /indra
parent0a54998432f7848ffad50e357ee5dc0de6f208a7 (diff)
vefifySSLCert truth is enough for setVerifySSLHost
The function takes a boolean argument anyway. This is so we don't get GCC int in bool context warning which would be treated as an error.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llxmlrpctransaction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llxmlrpctransaction.cpp b/indra/newview/llxmlrpctransaction.cpp
index 8d178dbbdc..8baddac121 100644
--- a/indra/newview/llxmlrpctransaction.cpp
+++ b/indra/newview/llxmlrpctransaction.cpp
@@ -377,7 +377,7 @@ void LLXMLRPCTransaction::Impl::init(XMLRPC_REQUEST request, bool useGzip, const
mCertStore = gSavedSettings.getString("CertStore");
httpOpts->setSSLVerifyPeer( vefifySSLCert );
- httpOpts->setSSLVerifyHost( vefifySSLCert ? 2 : 0);
+ httpOpts->setSSLVerifyHost( vefifySSLCert );
// LLRefCounted starts with a 1 ref, so don't add a ref in the smart pointer
httpHeaders = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders());