summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranziskus Kiefer <franziskuskiefer@gmail.com>2018-06-05 10:59:44 +0200
committerFranziskus Kiefer <franziskuskiefer@gmail.com>2018-06-05 10:59:44 +0200
commit7ec6169bf90368cbbc2eb87053c18e7308ea9db8 (patch)
treee212d36d2d97e25ed7ebb32f5a95b4b2fa0e74c1
parente28941445deeeb651ebce25f0106fbf0f302e103 (diff)
downloadnss-hg-7ec6169bf90368cbbc2eb87053c18e7308ea9db8.tar.gz
Bug 1465241 - always init tmpArena, r=mt
Differential Revision: https://phabricator.services.mozilla.com/D1552
-rw-r--r--lib/softoken/legacydb/pcertdb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/softoken/legacydb/pcertdb.c b/lib/softoken/legacydb/pcertdb.c
index 2e8b650ee..47778190d 100644
--- a/lib/softoken/legacydb/pcertdb.c
+++ b/lib/softoken/legacydb/pcertdb.c
@@ -2577,14 +2577,13 @@ ReadDBSubjectEntry(NSSLOWCERTCertDBHandle *handle, SECItem *derSubject)
SECItem dbentry;
SECStatus rv;
+ PORT_InitCheapArena(&tmpArena, DER_DEFAULT_CHUNKSIZE);
arena = PORT_NewArena(DER_DEFAULT_CHUNKSIZE);
if (arena == NULL) {
PORT_SetError(SEC_ERROR_NO_MEMORY);
goto loser;
}
- PORT_InitCheapArena(&tmpArena, DER_DEFAULT_CHUNKSIZE);
-
entry = (certDBEntrySubject *)PORT_ArenaAlloc(arena,
sizeof(certDBEntrySubject));
if (entry == NULL) {