summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorian.mcgreer%sun.com <devnull@localhost>2002-03-05 16:54:16 +0000
committerian.mcgreer%sun.com <devnull@localhost>2002-03-05 16:54:16 +0000
commit693fb04ff8ac8b328e56bc65c7e5f76f980e8a95 (patch)
tree66dfe213bcd471c96d357683e9f9ced03bc34cec
parent6c06410e738ff2a8041d485c0f2e6cf22d7a1a23 (diff)
downloadnss-hg-693fb04ff8ac8b328e56bc65c7e5f76f980e8a95.tar.gz
missed part of last patch
-rw-r--r--security/nss/lib/pki/pkistore.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/security/nss/lib/pki/pkistore.c b/security/nss/lib/pki/pkistore.c
index 26cae805f..ce55ff72e 100644
--- a/security/nss/lib/pki/pkistore.c
+++ b/security/nss/lib/pki/pkistore.c
@@ -370,6 +370,9 @@ get_array_from_list
PRUint32 count;
NSSCertificate **rvArray = NULL;
count = nssList_Count(certList);
+ if (count == 0) {
+ return NULL;
+ }
if (maximumOpt > 0) {
count = PR_MIN(maximumOpt, count);
}