From b59d15e912d2f3804d4e17223a9a84fbb40bcef1 Mon Sep 17 00:00:00 2001 From: "ian.mcgreer%sun.com" Date: Thu, 29 Nov 2001 22:05:32 +0000 Subject: [PATCH] fix bug found from PK11_ListCerts --- security/nss/lib/pki/trustdomain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/security/nss/lib/pki/trustdomain.c b/security/nss/lib/pki/trustdomain.c index 93c1dfccb3a..2aed8a2c90a 100644 --- a/security/nss/lib/pki/trustdomain.c +++ b/security/nss/lib/pki/trustdomain.c @@ -32,7 +32,7 @@ */ #ifdef DEBUG -static const char CVS_ID[] = "@(#) $RCSfile: trustdomain.c,v $ $Revision: 1.18 $ $Date: 2001-11-29 19:34:08 $ $Name: $"; +static const char CVS_ID[] = "@(#) $RCSfile: trustdomain.c,v $ $Revision: 1.19 $ $Date: 2001-11-29 22:05:32 $ $Name: $"; #endif /* DEBUG */ #ifndef NSSPKI_H @@ -889,6 +889,7 @@ NSSTrustDomain_TraverseCertificates NSSToken *token; nssList *certList; nssTokenCertSearch search; + certList = nssList_Create(NULL, PR_FALSE); (void *)nssTrustDomain_GetCertsFromCache(td, certList); /* set the search criteria */ search.callback = callback;