Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 1439350, NSS 3.31 introduced a shutdown leak, after executing PK1…
…1_ListCerts(PK11CertListAll) with p11-kit-trust.so, r=rrelyea
  • Loading branch information
kaie committed Feb 22, 2018
1 parent a3137d5 commit c88eaef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pki/pkibase.c
Expand Up @@ -923,9 +923,11 @@ nssPKIObjectCollection_AddInstanceAsObject(
return PR_FAILURE;
}
if (!node->haveObject) {
nssPKIObject *original = node->object;
node->object = (*collection->createObject)(node->object);
if (!node->object) {
/*remove bogus object from list*/
nssPKIObject_Destroy(original);
nssPKIObjectCollection_RemoveNode(collection, node);
return PR_FAILURE;
}
Expand Down

0 comments on commit c88eaef

Please sign in to comment.