diff options
author | ukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-15 03:42:48 +0000 |
---|---|---|
committer | ukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-15 03:42:48 +0000 |
commit | fddf0d42dc3c82d8e8b7a780eb1483723d0915fc (patch) | |
tree | 948636e6ecb41ab23a6acf8b6db3d357ca971b93 /net/http | |
parent | 6cb1cecb89e24f800677c64a0944e287553c2be7 (diff) | |
download | chromium_src-fddf0d42dc3c82d8e8b7a780eb1483723d0915fc.zip chromium_src-fddf0d42dc3c82d8e8b7a780eb1483723d0915fc.tar.gz chromium_src-fddf0d42dc3c82d8e8b7a780eb1483723d0915fc.tar.bz2 |
Assert that HttpNetworkTransaction::GetResponseInfo() should
never return NULL when we get a certificate error.
R=wtc
BUG=11646
TEST=access https://www.cdep.ro/
Review URL: http://codereview.chromium.org/113330
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16144 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r-- | net/http/http_cache.cc | 6 |
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); } |