Fix for bug 177798 - NULL pointers in ShutdownCRLCache to allow shutdown/restart

of NSS.
This commit is contained in:
jpierre%netscape.com 2002-11-02 00:07:48 +00:00
Родитель 213c133c5e
Коммит e18a2330bd
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -34,7 +34,7 @@
/*
* Moved from secpkcs7.c
*
* $Id: crl.c,v 1.28 2002-10-30 23:31:38 jpierre%netscape.com Exp $
* $Id: crl.c,v 1.29 2002-11-02 00:07:48 jpierre%netscape.com Exp $
*/
#include "cert.h"
@ -1052,7 +1052,9 @@ SECStatus ShutdownCRLCache(void)
/* empty the cache */
PL_HashTableEnumerateEntries(crlcache.issuers, &FreeIssuer, NULL);
PL_HashTableDestroy(crlcache.issuers);
crlcache.issuers = NULL;
PR_DestroyLock(crlcache.lock);
crlcache.lock = NULL;
return SECSuccess;
}