353902: klocwork bugs in stanpcertdb.c. r=nelson
git-svn-id: svn://10.0.0.236/trunk@214447 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
524b9f24a6
commit
07e48e520a
@ -92,6 +92,11 @@ SEC_DeletePermCertificate(CERTCertificate *cert)
|
||||
NSSTrustDomain *td = STAN_GetDefaultTrustDomain();
|
||||
NSSCertificate *c = STAN_GetNSSCertificate(cert);
|
||||
|
||||
if (c == NULL) {
|
||||
/* error code is set */
|
||||
return SECFailure;
|
||||
}
|
||||
|
||||
/* get rid of the token instances */
|
||||
nssrv = NSSCertificate_DeleteStoredObject(c, NULL);
|
||||
|
||||
@ -158,6 +163,11 @@ __CERT_AddTempCertToPerm(CERTCertificate *cert, char *nickname,
|
||||
nssCertificateStoreTrace lockTrace = {NULL, NULL, PR_FALSE, PR_FALSE};
|
||||
nssCertificateStoreTrace unlockTrace = {NULL, NULL, PR_FALSE, PR_FALSE};
|
||||
|
||||
if (c == NULL) {
|
||||
/* error code is set */
|
||||
return SECFailure;
|
||||
}
|
||||
|
||||
context = c->object.cryptoContext;
|
||||
if (!context) {
|
||||
PORT_SetError(SEC_ERROR_ADDING_CERT);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user