Restore clearly-delimited format for the HSTS preload list

This commit is contained in:
trav90 2018-06-05 22:46:15 -05:00 committed by Roy Tam
commit 70b28bf2ee
3 changed files with 23 additions and 65 deletions

View file

@ -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.