зеркало из https://github.com/mozilla/pjs.git
Bug 186586: If at NSS shutdown there are still certs in the cert caches,
cause NSS shutdown and the next NSS initialization to fail but do not destroy the cert caches (and the crypto context and trust domain containing them) to avoid a crash if the NSS client destroys the certs later. New error codes needed to be added to indicate the failure of NSS shutdown and NSS initialization due to this cause.
This commit is contained in:
Родитель
3e2a98c878
Коммит
27fc2706ca
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#ifdef DEBUG
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: cryptocontext.c,v $ $Revision: 1.11 $ $Date: 2002-09-23 21:32:31 $ $Name: $";
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: cryptocontext.c,v $ $Revision: 1.12 $ $Date: 2003-01-08 21:58:29 $ $Name: $";
|
||||
#endif /* DEBUG */
|
||||
|
||||
#ifndef DEV_H
|
||||
|
@ -89,11 +89,15 @@ NSSCryptoContext_Destroy (
|
|||
NSSCryptoContext *cc
|
||||
)
|
||||
{
|
||||
PRStatus status = PR_SUCCESS;
|
||||
if (cc->certStore) {
|
||||
nssCertificateStore_Destroy(cc->certStore);
|
||||
status = nssCertificateStore_Destroy(cc->certStore);
|
||||
if (status == PR_FAILURE) {
|
||||
return status;
|
||||
}
|
||||
}
|
||||
nssArena_Destroy(cc->arena);
|
||||
return PR_SUCCESS;
|
||||
return status;
|
||||
}
|
||||
|
||||
NSS_IMPLEMENT PRStatus
|
||||
|
|
Загрузка…
Ссылка в новой задаче