bug 125808, fix crash seen with Javi's db
git-svn-id: svn://10.0.0.236/trunk@115733 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#ifdef DEBUG
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: tdcache.c,v $ $Revision: 1.26 $ $Date: 2002-02-08 21:47:05 $ $Name: not supported by cvs2svn $";
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: tdcache.c,v $ $Revision: 1.27 $ $Date: 2002-03-04 21:06:10 $ $Name: not supported by cvs2svn $";
|
||||
#endif /* DEBUG */
|
||||
|
||||
#ifndef PKIM_H
|
||||
@@ -729,6 +729,7 @@ add_cert_to_cache
|
||||
return nssrv;
|
||||
loser:
|
||||
/* Remove any handles that have been created */
|
||||
subjectList = NULL;
|
||||
if (added >= 1) {
|
||||
(void)remove_issuer_and_serial_entry(td->cache, cert);
|
||||
}
|
||||
@@ -741,6 +742,10 @@ loser:
|
||||
if (added >= 4) {
|
||||
(void)remove_email_entry(td->cache, cert, subjectList);
|
||||
}
|
||||
if (subjectList) {
|
||||
nssHash_Remove(td->cache->subject, &cert->subject);
|
||||
nssList_Destroy(subjectList);
|
||||
}
|
||||
if (arena) {
|
||||
nssArena_Destroy(arena);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user