diff options
author | alexei.volkov.bugs%sun.com <devnull@localhost> | 2006-04-22 00:54:51 +0000 |
---|---|---|
committer | alexei.volkov.bugs%sun.com <devnull@localhost> | 2006-04-22 00:54:51 +0000 |
commit | 0f218e2e8d29785d8f195232179d1b4f49954cee (patch) | |
tree | a44247b1af5634bac4bbec8d4b5cd9a6f6cf73b5 | |
parent | 379c6669078b08c33a182cba600c7d33f3a6e618 (diff) | |
download | nss-hg-0f218e2e8d29785d8f195232179d1b4f49954cee.tar.gz |
[Bug 334236] double free in PK11_ListPrivKeysInSlot if keys allocation fails. r=nelson
-rw-r--r-- | security/nss/lib/pk11wrap/pk11akey.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/nss/lib/pk11wrap/pk11akey.c b/security/nss/lib/pk11wrap/pk11akey.c index cf16c7836..ac0fe0d52 100644 --- a/security/nss/lib/pk11wrap/pk11akey.c +++ b/security/nss/lib/pk11wrap/pk11akey.c @@ -2003,6 +2003,7 @@ PK11_ListPrivKeysInSlot(PK11SlotInfo *slot, char *nickname, void *wincx) keys = SECKEY_NewPrivateKeyList(); if (keys == NULL) { PORT_Free(key_ids); + return NULL; } for (i=0; i < objCount ; i++) { |