summaryrefslogtreecommitdiff
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
parent1b9accd6fa553930aea02a51e0f49139eec94e84 (diff)
downloaduxp-a74b0934718f3cc442d8118acdecc4e5aa5b5323.tar.gz
Fix check for HSTS when service is disabled.
-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 0fd19dd5bc..fc38f4e643 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;
}