__CERT_AddTempCertToPerm will now set error SEC_ERROR_ADDING_CERT

when attempting to make a cert perm that is already permanent.
Bugzilla bug 227559. r=wtc


git-svn-id: svn://10.0.0.236/trunk@150100 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nelsonb%netscape.com
2003-12-06 06:46:27 +00:00
parent 91eaa1ae03
commit 1b2d6975c1

View File

@@ -154,6 +154,7 @@ __CERT_AddTempCertToPerm(CERTCertificate *cert, char *nickname,
NSSCertificate *c = STAN_GetNSSCertificate(cert);
context = c->object.cryptoContext;
if (!context) {
PORT_SetError(SEC_ERROR_ADDING_CERT);
return SECFailure; /* wasn't a temp cert */
}
stanNick = nssCertificate_GetNickname(c, NULL);