Bug 204797: nssTokenObjectCache_Clear needs to lock the cache, otherwise

multiple threads could clear the cache at the same time after a token is
removed.
This commit is contained in:
wtc%netscape.com 2003-05-10 14:19:04 +00:00
Родитель 45e84b56c9
Коммит e270a63b63
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -32,7 +32,7 @@
*/
#ifdef DEBUG
static const char CVS_ID[] = "@(#) $RCSfile: devutil.c,v $ $Revision: 1.19 $ $Date: 2002-12-12 06:05:22 $ $Name: $";
static const char CVS_ID[] = "@(#) $RCSfile: devutil.c,v $ $Revision: 1.20 $ $Date: 2003-05-10 14:19:04 $ $Name: $";
#endif /* DEBUG */
#ifndef DEVM_H
@ -626,7 +626,9 @@ nssTokenObjectCache_Clear
)
{
if (cache) {
PZ_Lock(cache->lock);
clear_cache(cache);
PZ_Unlock(cache->lock);
}
}