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,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;