diff options
author | alexei.volkov.bugs%sun.com <devnull@localhost> | 2006-04-26 20:47:32 +0000 |
---|---|---|
committer | alexei.volkov.bugs%sun.com <devnull@localhost> | 2006-04-26 20:47:32 +0000 |
commit | 4fce5cc32bae6daffee7c5649cfecbb667fcbbf6 (patch) | |
tree | cfebb62227d5941f2e730dfcb8ff330089bd3993 | |
parent | ea7c498ed5e26f2c5c622887cecf94dd59706f59 (diff) | |
parent | d9340be3208b87c9f44de474ac8331ca2cf52f34 (diff) | |
download | nss-hg-4fce5cc32bae6daffee7c5649cfecbb667fcbbf6.tar.gz |
[Bug 333389] sftk_NewAttribute should not crash when so is NULL [@ sftk_NewAttribute]. r=nelson
-rw-r--r-- | security/nss/lib/softoken/pkcs11u.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/nss/lib/softoken/pkcs11u.c b/security/nss/lib/softoken/pkcs11u.c index 86af45404..9790f0ca3 100644 --- a/security/nss/lib/softoken/pkcs11u.c +++ b/security/nss/lib/softoken/pkcs11u.c @@ -67,6 +67,7 @@ sftk_NewAttribute(SFTKObject *object, if (so == NULL) { /* allocate new attribute in a buffer */ PORT_Assert(0); + return NULL; } /* * We attempt to keep down contention on Malloc and Arena locks by |