From a74b0934718f3cc442d8118acdecc4e5aa5b5323 Mon Sep 17 00:00:00 2001 From: Ascrod <32915892+Ascrod@users.noreply.github.com> Date: Thu, 17 Jan 2019 18:18:49 -0500 Subject: Fix check for HSTS when service is disabled. --- security/manager/ssl/nsSiteSecurityService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'security/manager') 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; } -- cgit v1.2.3