зеркало из https://github.com/mozilla/pjs.git
Fix 169798: Failed to install ca signing certificate with NS3.6beta.
r=wtc
This commit is contained in:
Родитель
f8c87fe76e
Коммит
9af9045725
|
@ -890,6 +890,8 @@ cert_ImportCAChain(SECItem *certs, int numcerts, SECCertUsage certUsage, PRBool
|
||||||
goto loser;
|
goto loser;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* if the cert is temp, make it perm; otherwise we're done */
|
||||||
|
if (cert->istemp) {
|
||||||
/* get a default nickname for it */
|
/* get a default nickname for it */
|
||||||
nickname = CERT_MakeCANickname(cert);
|
nickname = CERT_MakeCANickname(cert);
|
||||||
|
|
||||||
|
@ -899,6 +901,9 @@ cert_ImportCAChain(SECItem *certs, int numcerts, SECCertUsage certUsage, PRBool
|
||||||
if ( nickname ) {
|
if ( nickname ) {
|
||||||
PORT_Free(nickname);
|
PORT_Free(nickname);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
rv = SECSuccess;
|
||||||
|
}
|
||||||
|
|
||||||
CERT_DestroyCertificate(cert);
|
CERT_DestroyCertificate(cert);
|
||||||
cert = NULL;
|
cert = NULL;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче