summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_cache.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
index a5078de..1beb36f 100644
--- a/net/http/http_cache.cc
+++ b/net/http/http_cache.cc
@@ -938,7 +938,11 @@ void HttpCache::Transaction::OnNetworkInfoAvailable(int result) {
}
}
} else if (IsCertificateError(result)) {
- response_.ssl_info = network_trans_->GetResponseInfo()->ssl_info;
+ const HttpResponseInfo* response = network_trans_->GetResponseInfo();
+ // If we get a certificate error, then there is a certificate in ssl_info,
+ // so GetResponseInfo() should never returns NULL here.
+ DCHECK(response);
+ response_.ssl_info = response->ssl_info;
}
HandleResult(result);
}