Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: base/nss_util.cc

Issue 2873027: Consistently increase the reference count when calling GetDefaultNSSKeySlot (Closed)
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/nss_util_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/nss_util.cc
diff --git a/base/nss_util.cc b/base/nss_util.cc
index 091ca05abff73f76073dc1c172096ddcc50d6c6f..927f1abd0e0b46bc9b5c89883f8e77e4fb3a9f16 100644
--- a/base/nss_util.cc
+++ b/base/nss_util.cc
@@ -227,7 +227,7 @@ class NSSInitSingleton {
PK11SlotInfo* GetDefaultKeySlot() {
if (real_db_slot_)
- return real_db_slot_;
+ return PK11_ReferenceSlot(real_db_slot_);
return PK11_GetInternalKeySlot();
}
« no previous file with comments | « no previous file | base/nss_util_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698