Index: net/cert/x509_certificate.cc |
diff --git a/net/cert/x509_certificate.cc b/net/cert/x509_certificate.cc |
index 880d487308be1cf7d85f47f7d41efe76739d6320..0c132ae9032d4e43764aef8e00b2af04e1af2f0c 100644 |
--- a/net/cert/x509_certificate.cc |
+++ b/net/cert/x509_certificate.cc |
@@ -697,7 +697,7 @@ bool X509Certificate::GetPEMEncodedChain( |
std::vector<std::string>* pem_encoded) const { |
std::vector<std::string> encoded_chain; |
std::string pem_data; |
- if (!GetPEMEncoded(os_cert_handle(), &pem_data)) |
+ if (!os_cert_handle() || !GetPEMEncoded(os_cert_handle(), &pem_data)) |
agl
2014/09/23 19:59:44
Should this not be fixed in GetDEREncoded and thus
felt
2014/09/23 20:26:50
sure, did this.
|
return false; |
encoded_chain.push_back(pem_data); |
for (size_t i = 0; i < intermediate_ca_certs_.size(); ++i) { |