summaryrefslogtreecommitdiffstats
path: root/security/manager/ssl/nsSiteSecurityService.cpp
diff options
context:
space:
mode:
authorAscrod <32915892+Ascrod@users.noreply.github.com>2019-01-17 18:18:49 -0500
committerAscrod <32915892+Ascrod@users.noreply.github.com>2019-01-17 18:18:49 -0500
commita74b0934718f3cc442d8118acdecc4e5aa5b5323 (patch)
tree130ff2dbf271d732c8ee104f965551df14355e17 /security/manager/ssl/nsSiteSecurityService.cpp
parent1b9accd6fa553930aea02a51e0f49139eec94e84 (diff)
downloadUXP-a74b0934718f3cc442d8118acdecc4e5aa5b5323.tar
UXP-a74b0934718f3cc442d8118acdecc4e5aa5b5323.tar.gz
UXP-a74b0934718f3cc442d8118acdecc4e5aa5b5323.tar.lz
UXP-a74b0934718f3cc442d8118acdecc4e5aa5b5323.tar.xz
UXP-a74b0934718f3cc442d8118acdecc4e5aa5b5323.zip
Fix check for HSTS when service is disabled.
Diffstat (limited to 'security/manager/ssl/nsSiteSecurityService.cpp')
-rw-r--r--security/manager/ssl/nsSiteSecurityService.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/manager/ssl/nsSiteSecurityService.cpp b/security/manager/ssl/nsSiteSecurityService.cpp
index 0fd19dd5b..fc38f4e64 100644
--- a/security/manager/ssl/nsSiteSecurityService.cpp
+++ b/security/manager/ssl/nsSiteSecurityService.cpp
@@ -998,7 +998,7 @@ nsSiteSecurityService::IsSecureHost(uint32_t aType, const char* aHost,
}
// Exit early if checking HSTS and STS not enabled
- if (!mUseStsService && aType != nsISiteSecurityService::HEADER_HSTS) {
+ if (!mUseStsService && aType == nsISiteSecurityService::HEADER_HSTS) {
return NS_OK;
}