summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexei.volkov.bugs%sun.com <devnull@localhost>2006-04-26 19:19:07 +0000
committeralexei.volkov.bugs%sun.com <devnull@localhost>2006-04-26 19:19:07 +0000
commit961342fbe790f3472f4672023c01db453f112e5d (patch)
treecfebb62227d5941f2e730dfcb8ff330089bd3993
parenteac2c4332756d86efbf98e2a8f70b9884f964de9 (diff)
downloadnss-hg-961342fbe790f3472f4672023c01db453f112e5d.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.c1
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