| Index: net/http/http_stream_factory_impl_job.cc
|
| diff --git a/net/http/http_stream_factory_impl_job.cc b/net/http/http_stream_factory_impl_job.cc
|
| index 66c3135be15d9616d416bb53f086b2d8112e2d0b..17cd7697e44051f7261fdf384a5bd1147ea231cc 100644
|
| --- a/net/http/http_stream_factory_impl_job.cc
|
| +++ b/net/http/http_stream_factory_impl_job.cc
|
| @@ -1074,8 +1074,10 @@ int HttpStreamFactoryImpl::Job::HandleCertificateError(int error) {
|
| // X509Certificate for whatever reason, but normally it shouldn't
|
| // happen, unless this code is used inside sandbox.
|
| if (ssl_info_.cert == NULL ||
|
| - !ssl_info_.cert->GetDEREncoded(&bad_cert.der_cert))
|
| + !X509Certificate::GetDEREncoded(ssl_info_.cert->os_cert_handle(),
|
| + &bad_cert.der_cert)) {
|
| return error;
|
| + }
|
| bad_cert.cert_status = ssl_info_.cert_status;
|
| server_ssl_config_.allowed_bad_certs.push_back(bad_cert);
|
|
|
|
|