зеркало из https://github.com/mozilla/pjs.git
b=96696 r=kaie sr=darin a=dbaron
adding missing init code checking in for bbaetz
This commit is contained in:
Родитель
858882f465
Коммит
13994c0b32
|
@ -780,6 +780,7 @@ nsSSLIOLayerNewSocket(const char *host,
|
|||
nsISupports** info,
|
||||
PRBool forTLSStepUp)
|
||||
{
|
||||
// XXX - this code is duplicated in nsSSLIOLayerAddToSocket
|
||||
if (firstTime) {
|
||||
nsresult rv = InitNSSMethods();
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
@ -2008,9 +2009,12 @@ nsSSLIOLayerAddToSocket(const char* host,
|
|||
PRFileDesc* layer = nsnull;
|
||||
nsresult rv;
|
||||
|
||||
// XXX - this code is duplicated in nsSSLIONewSocket
|
||||
if (firstTime) {
|
||||
rv = InitNSSMethods();
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
gTLSIntolerantSites = new nsHashtable(16, PR_TRUE);
|
||||
if (!gTLSIntolerantSites) return NS_ERROR_OUT_OF_MEMORY;
|
||||
firstTime = PR_FALSE;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче