Fix 169798: Failed to install ca signing certificate with NS3.6beta.

r=wtc
This commit is contained in:
nicolson%netscape.com 2002-09-27 00:01:53 +00:00
Родитель f8c87fe76e
Коммит 9af9045725
1 изменённых файлов: 11 добавлений и 6 удалений

Просмотреть файл

@ -890,14 +890,19 @@ cert_ImportCAChain(SECItem *certs, int numcerts, SECCertUsage certUsage, PRBool
goto loser;
}
/* get a default nickname for it */
nickname = CERT_MakeCANickname(cert);
/* if the cert is temp, make it perm; otherwise we're done */
if (cert->istemp) {
/* get a default nickname for it */
nickname = CERT_MakeCANickname(cert);
rv = CERT_AddTempCertToPerm(cert, nickname, &trust);
rv = CERT_AddTempCertToPerm(cert, nickname, &trust);
/* free the nickname */
if ( nickname ) {
PORT_Free(nickname);
/* free the nickname */
if ( nickname ) {
PORT_Free(nickname);
}
} else {
rv = SECSuccess;
}
CERT_DestroyCertificate(cert);