fix bug found from PK11_ListCerts

This commit is contained in:
ian.mcgreer%sun.com 2001-11-29 22:05:32 +00:00
Родитель 6c8583bb8c
Коммит b59d15e912
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -32,7 +32,7 @@
*/ */
#ifdef DEBUG #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 */ #endif /* DEBUG */
#ifndef NSSPKI_H #ifndef NSSPKI_H
@ -889,6 +889,7 @@ NSSTrustDomain_TraverseCertificates
NSSToken *token; NSSToken *token;
nssList *certList; nssList *certList;
nssTokenCertSearch search; nssTokenCertSearch search;
certList = nssList_Create(NULL, PR_FALSE);
(void *)nssTrustDomain_GetCertsFromCache(td, certList); (void *)nssTrustDomain_GetCertsFromCache(td, certList);
/* set the search criteria */ /* set the search criteria */
search.callback = callback; search.callback = callback;