Bug 1131880 - Modify the condition to disallow PR_CONNECT_RESET_ERROR on fallback. r=keeler

This commit is contained in:
Masatoshi Kimura 2015-02-16 20:03:06 +09:00
parent 150d422525
commit c8e087c026

View File

@ -1227,10 +1227,10 @@ retryDueToTLSIntolerance(PRErrorCode err, nsNSSSocketInfo* socketInfo)
return false;
}
// Allow PR_CONNECT_RESET_ERROR only for whitelisted sites.
// Disallow PR_CONNECT_RESET_ERROR if fallback limit reached.
if (err == PR_CONNECT_RESET_ERROR &&
!socketInfo->SharedState().IOLayerHelpers()
.isInsecureFallbackSite(socketInfo->GetHostName())) {
socketInfo->SharedState().IOLayerHelpers()
.fallbackLimitReached(socketInfo->GetHostName(), range.max)) {
return false;
}