summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 23:24:48 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 23:24:48 +0000
commit4f49072bbfac530babcd3c138ecc18f670c47818 (patch)
tree9fc960ce90b4a6794322b01e54226b521e0849ef /chrome/browser
parent378d9d2cd2db88f6f567565ad88a172bce5d806e (diff)
downloadchromium_src-4f49072bbfac530babcd3c138ecc18f670c47818.zip
chromium_src-4f49072bbfac530babcd3c138ecc18f670c47818.tar.gz
chromium_src-4f49072bbfac530babcd3c138ecc18f670c47818.tar.bz2
Check return values for ReadInt in SSL manager
(found by Coverity) Review URL: http://codereview.chromium.org/42369 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12030 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/ssl/ssl_manager.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/ssl/ssl_manager.cc b/chrome/browser/ssl/ssl_manager.cc
index 61c10ba..f158104 100644
--- a/chrome/browser/ssl/ssl_manager.cc
+++ b/chrome/browser/ssl/ssl_manager.cc
@@ -762,10 +762,9 @@ bool SSLManager::DeserializeSecurityInfo(const std::string& state,
Pickle pickle(state.data(), static_cast<int>(state.size()));
void * iter = NULL;
- pickle.ReadInt(&iter, cert_id);
- pickle.ReadInt(&iter, cert_status);
- pickle.ReadInt(&iter, security_bits);
- return true;
+ return pickle.ReadInt(&iter, cert_id) &&
+ pickle.ReadInt(&iter, cert_status) &&
+ pickle.ReadInt(&iter, security_bits);
}
// static