diff options
author | gbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-27 19:30:02 +0000 |
---|---|---|
committer | gbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-27 19:30:02 +0000 |
commit | 292d3351d0480635baff0f4d02a849da3b813c1b (patch) | |
tree | df6274648f15f808f303632fa829419d9b86a6da /net | |
parent | 2d7c85529b0210e148d70eb3d0edf485d6521708 (diff) | |
download | chromium_src-292d3351d0480635baff0f4d02a849da3b813c1b.zip chromium_src-292d3351d0480635baff0f4d02a849da3b813c1b.tar.gz chromium_src-292d3351d0480635baff0f4d02a849da3b813c1b.tar.bz2 |
Add checks for entry_. From coverity CID=8237
Check result of inflateInit Coverity CID=14712
BUG=
TEST=
Review URL: http://codereview.chromium.org/7222027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90618 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/http/http_cache_transaction.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc index 9af0c83..7c5b09d 100644 --- a/net/http/http_cache_transaction.cc +++ b/net/http/http_cache_transaction.cc @@ -1516,7 +1516,7 @@ int HttpCache::Transaction::BeginCacheValidation() { cache_->ConvertWriterToReader(entry_); mode_ = READ; - if (entry_ && entry_->disk_entry->GetDataSize(kMetadataIndex)) + if (entry_->disk_entry->GetDataSize(kMetadataIndex)) next_state_ = STATE_CACHE_READ_METADATA; } else { // Make the network request conditional, to see if we may reuse our cached |