Chromium Code Reviews| Index: net/cert/x509_certificate_win.cc |
| diff --git a/net/cert/x509_certificate_win.cc b/net/cert/x509_certificate_win.cc |
| index c679107371a8594e8202b725bf4078d46f7b8074..3aa576321e8bc168ce5260fd552e008cb45786c0 100644 |
| --- a/net/cert/x509_certificate_win.cc |
| +++ b/net/cert/x509_certificate_win.cc |
| @@ -235,7 +235,8 @@ PCCERT_CONTEXT X509Certificate::CreateOSCertChainForCert() const { |
| // static |
| bool X509Certificate::GetDEREncoded(X509Certificate::OSCertHandle cert_handle, |
| std::string* encoded) { |
| - if (!cert_handle->pbCertEncoded || !cert_handle->cbCertEncoded) |
| + if (!cert_handle || !cert_handle->pbCertEncoded || |
| + !cert_handle->cbCertEncoded) |
|
agl
2014/09/23 20:30:00
this needs { } now that it's a multi-line conditio
felt
2014/09/24 03:53:48
Done.
|
| return false; |
| encoded->assign(reinterpret_cast<char*>(cert_handle->pbCertEncoded), |
| cert_handle->cbCertEncoded); |