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

Unified Diff: net/base/x509_certificate_nss.cc

Issue 8919020: This fixes a bug I introduced last night (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merging if statements Created 9 years 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 | « net/base/cert_database_nss.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/x509_certificate_nss.cc
diff --git a/net/base/x509_certificate_nss.cc b/net/base/x509_certificate_nss.cc
index af7172c69940e1857940253a6f9227c2b109452c..0436abbb18ff8f1d3aec45a2c2132928b8f0659b 100644
--- a/net/base/x509_certificate_nss.cc
+++ b/net/base/x509_certificate_nss.cc
@@ -710,7 +710,7 @@ std::string X509Certificate::GetDefaultNickname(CertType type) const {
return default_nickname_;
std::string result;
- if (type == USER_CERT) {
+ if (type == USER_CERT && cert_handle_->slot) {
// Find the private key for this certificate and see if it has a
// nickname. If there is a private key, and it has a nickname, then
// we return that nickname.
« no previous file with comments | « net/base/cert_database_nss.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698