summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexei.volkov.bugs%sun.com <devnull@localhost>2006-04-22 01:08:17 +0000
committeralexei.volkov.bugs%sun.com <devnull@localhost>2006-04-22 01:08:17 +0000
commitc44ced1e841a7b1d7bf706b225f3d7e2c640dc40 (patch)
treefaffc77ec93b92478779fea87201875e76465b16
parente0f4732e84fed01285c94e5538d415e9460196b7 (diff)
downloadnss-hg-c44ced1e841a7b1d7bf706b225f3d7e2c640dc40.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 04336d7a0..e74783d97 100644
--- a/security/nss/lib/pk11wrap/pk11akey.c
+++ b/security/nss/lib/pk11wrap/pk11akey.c
@@ -1968,6 +1968,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++) {