mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
353903: klocwork oom crash in softoken/keydb.c. r=nelson
This commit is contained in:
parent
f4e98c2852
commit
a8f4eefb65
@ -34,7 +34,7 @@
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
/* $Id: keydb.c,v 1.48 2006/08/25 23:04:15 alexei.volkov.bugs%sun.com Exp $ */
|
||||
/* $Id: keydb.c,v 1.49 2006/10/09 22:28:07 alexei.volkov.bugs%sun.com Exp $ */
|
||||
|
||||
#include "lowkeyi.h"
|
||||
#include "seccomon.h"
|
||||
@ -1082,6 +1082,10 @@ nsslowkey_OpenKeyDB(PRBool readOnly, const char *appName, const char *prefix,
|
||||
|
||||
|
||||
handle = nsslowkey_NewHandle(NULL);
|
||||
if (!handle) {
|
||||
/* error code is set */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
openflags = readOnly ? NO_RDONLY : NO_RDWR;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user