mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
[Bug 337332] Leak in OpenNewDB (security/nss/lib/softoken/keydb.c). r=nelson
This commit is contained in:
parent
12c1d9811b
commit
ef6e49c6b2
@ -34,7 +34,7 @@
|
|||||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||||
*
|
*
|
||||||
* ***** END LICENSE BLOCK ***** */
|
* ***** END LICENSE BLOCK ***** */
|
||||||
/* $Id: keydb.c,v 1.44 2006/05/13 00:27:22 alexei.volkov.bugs%sun.com Exp $ */
|
/* $Id: keydb.c,v 1.45 2006/05/17 17:56:32 alexei.volkov.bugs%sun.com Exp $ */
|
||||||
|
|
||||||
#include "lowkeyi.h"
|
#include "lowkeyi.h"
|
||||||
#include "seccomon.h"
|
#include "seccomon.h"
|
||||||
@ -933,7 +933,7 @@ openNewDB(const char *appName, const char *prefix, const char *dbname,
|
|||||||
* local database we can update from.
|
* local database we can update from.
|
||||||
*/
|
*/
|
||||||
if (appName) {
|
if (appName) {
|
||||||
NSSLOWKEYDBHandle *updateHandle = nsslowkey_NewHandle(updatedb);
|
NSSLOWKEYDBHandle *updateHandle;
|
||||||
updatedb = dbopen( dbname, NO_RDONLY, 0600, DB_HASH, 0 );
|
updatedb = dbopen( dbname, NO_RDONLY, 0600, DB_HASH, 0 );
|
||||||
if (!updatedb) {
|
if (!updatedb) {
|
||||||
goto noupdate;
|
goto noupdate;
|
||||||
|
Loading…
Reference in New Issue
Block a user