mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
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.
This commit is contained in:
parent
f32a4d3f27
commit
a3089c6a9d
@ -37,7 +37,7 @@
|
|||||||
/*
|
/*
|
||||||
* Permanent Certificate database handling code
|
* 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"
|
#include "prtime.h"
|
||||||
|
|
||||||
@ -3844,6 +3844,8 @@ UpdateV5DB(NSSLOWCERTCertDBHandle *handle, DB *updatedb)
|
|||||||
|
|
||||||
updatehandle.permCertDB = updatedb;
|
updatehandle.permCertDB = updatedb;
|
||||||
updatehandle.dbMon = PZ_NewMonitor(nssILockCertDB);
|
updatehandle.dbMon = PZ_NewMonitor(nssILockCertDB);
|
||||||
|
updatehandle.dbVerify = 0;
|
||||||
|
updatehandle.ref = 1; /* prevent premature close */
|
||||||
|
|
||||||
rv = nsslowcert_TraversePermCerts(&updatehandle, updateV5Callback,
|
rv = nsslowcert_TraversePermCerts(&updatehandle, updateV5Callback,
|
||||||
(void *)handle);
|
(void *)handle);
|
||||||
|
Loading…
Reference in New Issue
Block a user