summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/util
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-12 17:00:52 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-12 17:00:52 +0000
commit72f891f407cc2ccd132328e97f1b4dd5eaab72b2 (patch)
tree92d8cc652d284024de6ea0a50e16888e03babaef /chrome/browser/sync/util
parentb2b0fceea58bf7e13cc73020133aff6d6b4f4640 (diff)
downloadchromium_src-72f891f407cc2ccd132328e97f1b4dd5eaab72b2.zip
chromium_src-72f891f407cc2ccd132328e97f1b4dd5eaab72b2.tar.gz
chromium_src-72f891f407cc2ccd132328e97f1b4dd5eaab72b2.tar.bz2
Coverity: Fix unchecked return values.
CID=13943, 13746, 13749, 13597, 13249, 13145, 12875, 12874, 12871, 12438, 12436, 12431 BUG=none TEST=none Review URL: http://codereview.chromium.org/6076006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71179 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/util')
-rw-r--r--chrome/browser/sync/util/nigori.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/sync/util/nigori.cc b/chrome/browser/sync/util/nigori.cc
index 49ed1db..51f767b 100644
--- a/chrome/browser/sync/util/nigori.cc
+++ b/chrome/browser/sync/util/nigori.cc
@@ -84,7 +84,8 @@ bool Nigori::InitByDerivation(const std::string& hostname,
DCHECK(user_salt.get());
std::string raw_user_salt;
- user_salt->GetRawKey(&raw_user_salt);
+ if (!user_salt->GetRawKey(&raw_user_salt))
+ return false;
// Kuser = PBKDF2(P, Suser, Nuser, 16)
user_key_.reset(SymmetricKey::DeriveKeyFromPassword(SymmetricKey::AES,