summaryrefslogtreecommitdiffstats
path: root/security/manager/ssl
diff options
context:
space:
mode:
Diffstat (limited to 'security/manager/ssl')
-rw-r--r--security/manager/ssl/nsSiteSecurityService.cpp2
-rw-r--r--security/manager/ssl/nsSiteSecurityService.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/security/manager/ssl/nsSiteSecurityService.cpp b/security/manager/ssl/nsSiteSecurityService.cpp
index d461f6b61..1d79844ff 100644
--- a/security/manager/ssl/nsSiteSecurityService.cpp
+++ b/security/manager/ssl/nsSiteSecurityService.cpp
@@ -935,7 +935,7 @@ int STSPreloadCompare(const void *key, const void *entry)
{
const char *keyStr = (const char *)key;
const nsSTSPreload *preloadEntry = (const nsSTSPreload *)entry;
- return strcmp(keyStr, &kSTSHostTable[preloadEntry->mHostIndex]);
+ return strcmp(keyStr, preloadEntry->mHost);
}
// Returns the preload list entry for the given host, if it exists.
diff --git a/security/manager/ssl/nsSiteSecurityService.h b/security/manager/ssl/nsSiteSecurityService.h
index f100a8f40..c40180550 100644
--- a/security/manager/ssl/nsSiteSecurityService.h
+++ b/security/manager/ssl/nsSiteSecurityService.h
@@ -110,7 +110,7 @@ public:
void ToString(nsCString &aString);
};
-struct nsSTSPreload;
+class nsSTSPreload;
class nsSiteSecurityService : public nsISiteSecurityService
, public nsIObserver