зеркало из https://github.com/mozilla/gecko-dev.git
b=137874 Unable to import CA cert before SSL keep alive connection is terminated
r=javi sr=alecf
This commit is contained in:
Родитель
95a1a4d33e
Коммит
0bc542e7d3
|
@ -3101,10 +3101,8 @@ nsNSSCertificateDB::handleCACertDownload(nsISupportsArray *x509Certs,
|
|||
CERTCertificate *tmpCert;
|
||||
CERTCertDBHandle *certdb = CERT_GetDefaultCertDB();
|
||||
#ifdef NSS_3_4
|
||||
PRBool isperm = PR_TRUE;
|
||||
tmpCert = CERT_FindCertByDERCert(certdb, &der);
|
||||
if (!tmpCert) {
|
||||
isperm = PR_FALSE;
|
||||
tmpCert = CERT_NewTempCertificate(certdb, &der,
|
||||
nsnull, PR_FALSE, PR_TRUE);
|
||||
}
|
||||
|
@ -3121,7 +3119,7 @@ nsNSSCertificateDB::handleCACertDownload(nsISupportsArray *x509Certs,
|
|||
|
||||
PRBool canceled;
|
||||
#ifdef NSS_3_4
|
||||
if (isperm) {
|
||||
if (tmpCert->isperm) {
|
||||
#else
|
||||
if (tmpCert->isperm) {
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче