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

Unified Diff: net/cert/x509_certificate_ios.cc

Issue 584463005: Add debugging information to the SSL blocking page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Brackets for multi-line if Created 6 years, 3 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 | « chrome/browser/ssl/ssl_blocking_page.cc ('k') | net/cert/x509_certificate_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/x509_certificate_ios.cc
diff --git a/net/cert/x509_certificate_ios.cc b/net/cert/x509_certificate_ios.cc
index ee10381953717316f7fc49590645fb0d4d608886..f59cb650993cb039bf64d67f794c7952a5f3e366 100644
--- a/net/cert/x509_certificate_ios.cc
+++ b/net/cert/x509_certificate_ios.cc
@@ -103,6 +103,8 @@ void X509Certificate::GetSubjectAltName(
// static
bool X509Certificate::GetDEREncoded(OSCertHandle cert_handle,
std::string* encoded) {
+ if (!cert_handle)
+ return false;
ScopedCFTypeRef<CFDataRef> der_data(SecCertificateCopyData(cert_handle));
if (!der_data)
return false;
« no previous file with comments | « chrome/browser/ssl/ssl_blocking_page.cc ('k') | net/cert/x509_certificate_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698