summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexei.volkov.bugs%sun.com <devnull@localhost>2006-04-22 01:08:11 +0000
committeralexei.volkov.bugs%sun.com <devnull@localhost>2006-04-22 01:08:11 +0000
commitb105c5157ae0f232967e00e2fcadfc5488e8624d (patch)
treec18f587f86d17d30b96d43ae59844a2492565c24
parent897b2ff7c2a20aff9871fc0d63c5f60f32905757 (diff)
downloadnss-hg-b105c5157ae0f232967e00e2fcadfc5488e8624d.tar.gz
[Bug 334275] double free in [@ PK11_ListPublicKeysInSlot]. r=nelson
-rw-r--r--security/nss/lib/pk11wrap/pk11akey.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/nss/lib/pk11wrap/pk11akey.c b/security/nss/lib/pk11wrap/pk11akey.c
index ac0fe0d52..f63ff3b9f 100644
--- a/security/nss/lib/pk11wrap/pk11akey.c
+++ b/security/nss/lib/pk11wrap/pk11akey.c
@@ -1958,6 +1958,7 @@ PK11_ListPublicKeysInSlot(PK11SlotInfo *slot, char *nickname)
keys = SECKEY_NewPublicKeyList();
if (keys == NULL) {
PORT_Free(key_ids);
+ return NULL;
}
for (i=0; i < objCount ; i++) {