diff options
author | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-01-17 18:18:49 -0500 |
---|---|---|
committer | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-01-17 18:18:49 -0500 |
commit | a74b0934718f3cc442d8118acdecc4e5aa5b5323 (patch) | |
tree | 130ff2dbf271d732c8ee104f965551df14355e17 /security/manager/ssl/nsSiteSecurityService.cpp | |
parent | 1b9accd6fa553930aea02a51e0f49139eec94e84 (diff) | |
download | uxp-a74b0934718f3cc442d8118acdecc4e5aa5b5323.tar.gz |
Fix check for HSTS when service is disabled.
Diffstat (limited to 'security/manager/ssl/nsSiteSecurityService.cpp')
-rw-r--r-- | security/manager/ssl/nsSiteSecurityService.cpp | 2 |
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; } |