414985 - Crash in pkix_pl_OcspRequest_Destroy. r=nelson

git-svn-id: svn://10.0.0.236/trunk@244605 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
alexei.volkov.bugs%sun.com
2008-01-31 18:44:27 +00:00
parent 653c76204c
commit 4dac23c0c1
2 changed files with 15 additions and 0 deletions

View File

@@ -1373,9 +1373,15 @@ PKIX_List *cert_PKIXMakeOIDList(const SECOidTag *oids, int oidCount, void *plCon
if (error == NULL) r = policyList;
cleanup:
if (policyOID != NULL) {
PKIX_PL_Object_DecRef((PKIX_PL_Object *)policyOID, plContext);
}
if (policyList != NULL) {
PKIX_PL_Object_DecRef((PKIX_PL_Object *)policyList, plContext);
}
if (error != NULL) {
PKIX_PL_Object_DecRef((PKIX_PL_Object *)error, plContext);
}
return r;
}
@@ -1704,6 +1710,9 @@ SECStatus CERT_PKIXVerifyCert(
r = SECSuccess;
cleanup:
if (anchors != NULL)
PKIX_PL_Object_DecRef((PKIX_PL_Object *)anchors, plContext);
if (procParams != NULL)
PKIX_PL_Object_DecRef((PKIX_PL_Object *)procParams, plContext);
@@ -1725,6 +1734,9 @@ cleanup:
if (certSelector != NULL)
PKIX_PL_Object_DecRef((PKIX_PL_Object *)certSelector, plContext);
if (error != NULL)
PKIX_PL_Object_DecRef((PKIX_PL_Object *)error, plContext);
PKIX_PL_NssContext_Destroy(plContext);
return r;

View File

@@ -348,6 +348,9 @@ pkix_pl_OcspRequest_Create(
ocspRequest->decoded = NULL;
ocspRequest->encoded = NULL;
ocspRequest->certList = NULL;
ocspRequest->location = NULL;
nssCert = cert->nssCert;
/*