[X2Go-Commits] [pale-moon] 19/102: Fix check for HSTS when service is disabled.

git-admin at x2go.org git-admin at x2go.org
Mon Feb 25 23:25:44 CET 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch upstream/28.4.0
in repository pale-moon.

commit a74b0934718f3cc442d8118acdecc4e5aa5b5323
Author: Ascrod <32915892+Ascrod at users.noreply.github.com>
Date:   Thu Jan 17 18:18:49 2019 -0500

    Fix check for HSTS when service is disabled.
---
 security/manager/ssl/nsSiteSecurityService.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/security/manager/ssl/nsSiteSecurityService.cpp b/security/manager/ssl/nsSiteSecurityService.cpp
index 0fd19dd..fc38f4e 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;
   }
 

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pale-moon.git


More information about the x2go-commits mailing list