Prevent crash when making new cert8.db from old cert5.db.
This is not the final solution, but it works. Bug 320029. r=rrelyea,sr=julien.pierre. On TRUNK. git-svn-id: svn://10.0.0.236/trunk@187807 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
59a08bda78
commit
264d4bfdd4
@ -37,7 +37,7 @@
|
||||
/*
|
||||
* Permanent Certificate database handling code
|
||||
*
|
||||
* $Id: pcertdb.c,v 1.54 2006-01-19 02:09:37 nelsonb%netscape.com Exp $
|
||||
* $Id: pcertdb.c,v 1.55 2006-01-19 02:16:30 nelsonb%netscape.com Exp $
|
||||
*/
|
||||
#include "prtime.h"
|
||||
|
||||
@ -3844,6 +3844,8 @@ UpdateV5DB(NSSLOWCERTCertDBHandle *handle, DB *updatedb)
|
||||
|
||||
updatehandle.permCertDB = updatedb;
|
||||
updatehandle.dbMon = PZ_NewMonitor(nssILockCertDB);
|
||||
updatehandle.dbVerify = 0;
|
||||
updatehandle.ref = 1; /* prevent premature close */
|
||||
|
||||
rv = nsslowcert_TraversePermCerts(&updatehandle, updateV5Callback,
|
||||
(void *)handle);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user