summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-27 20:03:52 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-27 20:03:52 +0000
commit488488caed289935b86679542ef7c3399a4040f0 (patch)
treee11bc94c87193ef59f7ea3424f32a5b2eeaa6ddd /net/http
parentc6e5f928c35b7fcd07c71f31694f83b90f210c46 (diff)
downloadchromium_src-488488caed289935b86679542ef7c3399a4040f0.zip
chromium_src-488488caed289935b86679542ef7c3399a4040f0.tar.gz
chromium_src-488488caed289935b86679542ef7c3399a4040f0.tar.bz2
Revert 90618 - Add checks for entry_. From coverity CID=8237
Check result of inflateInit Coverity CID=14712 BUG= TEST= Review URL: http://codereview.chromium.org/7222027 TBR=gbillock@chromium.org Review URL: http://codereview.chromium.org/7253014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_cache_transaction.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index 7c5b09d..9af0c83 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_->disk_entry->GetDataSize(kMetadataIndex))
+ if (entry_ && 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