summaryrefslogtreecommitdiffstats
path: root/security/manager/ssl/TransportSecurityInfo.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-02-25 01:03:57 +0000
committerMoonchild <moonchild@palemoon.org>2021-02-25 01:03:57 +0000
commitceadffab6b357723981a429e11222daf6cd6dcfb (patch)
tree5603053048d6a460f79b22bdf165fb74d32d39b0 /security/manager/ssl/TransportSecurityInfo.cpp
parent14fb2f966e9b54598c451e3cb35b4aa0480dafed (diff)
parentad5a13bd501e379517da1a944c104a11d951a3f5 (diff)
downloadUXP-40eabef10f3f16a5ece110f35f9f9c5bf8523bb2.tar
UXP-40eabef10f3f16a5ece110f35f9f9c5bf8523bb2.tar.gz
UXP-40eabef10f3f16a5ece110f35f9f9c5bf8523bb2.tar.lz
UXP-40eabef10f3f16a5ece110f35f9f9c5bf8523bb2.tar.xz
UXP-40eabef10f3f16a5ece110f35f9f9c5bf8523bb2.zip
Merge branch 'master' into releaseRC_20210225
Diffstat (limited to 'security/manager/ssl/TransportSecurityInfo.cpp')
-rw-r--r--security/manager/ssl/TransportSecurityInfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/security/manager/ssl/TransportSecurityInfo.cpp b/security/manager/ssl/TransportSecurityInfo.cpp
index 3f4bf4a90..6badceb88 100644
--- a/security/manager/ssl/TransportSecurityInfo.cpp
+++ b/security/manager/ssl/TransportSecurityInfo.cpp
@@ -74,6 +74,7 @@ NS_IMPL_ISUPPORTS(TransportSecurityInfo,
nsresult
TransportSecurityInfo::SetHostName(const char* host)
{
+ MutexAutoLock lock(mMutex);
mHostName.Adopt(host ? NS_strdup(host) : 0);
return NS_OK;
}
@@ -103,6 +104,7 @@ nsresult
TransportSecurityInfo::SetOriginAttributes(
const NeckoOriginAttributes& aOriginAttributes)
{
+ MutexAutoLock lock(mMutex);
mOriginAttributes = aOriginAttributes;
return NS_OK;
}
@@ -136,6 +138,7 @@ TransportSecurityInfo::GetSecurityState(uint32_t* state)
nsresult
TransportSecurityInfo::SetSecurityState(uint32_t aState)
{
+ MutexAutoLock lock(mMutex);
mSecurityState = aState;
return NS_OK;
}
@@ -152,6 +155,7 @@ NS_IMETHODIMP
TransportSecurityInfo::SetCountSubRequestsBrokenSecurity(
int32_t aSubRequestsBrokenSecurity)
{
+ MutexAutoLock lock(mMutex);
mSubRequestsBrokenSecurity = aSubRequestsBrokenSecurity;
return NS_OK;
}
@@ -168,6 +172,7 @@ NS_IMETHODIMP
TransportSecurityInfo::SetCountSubRequestsNoSecurity(
int32_t aSubRequestsNoSecurity)
{
+ MutexAutoLock lock(mMutex);
mSubRequestsNoSecurity = aSubRequestsNoSecurity;
return NS_OK;
}
@@ -515,6 +520,7 @@ TransportSecurityInfo::GetSSLStatus(nsISSLStatus** _result)
nsresult
TransportSecurityInfo::SetSSLStatus(nsSSLStatus *aSSLStatus)
{
+ MutexAutoLock lock(mMutex);
mSSLStatus = aSSLStatus;
return NS_OK;