diff options
| author | Matt Corallo <[email protected]> | 2011-07-27 18:02:39 +0200 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2011-07-27 18:02:39 +0200 |
| commit | 687c82558cc568f37eb1fb24bfb3c351e49d6735 (patch) | |
| tree | ac5d0ee6dbc507af6958d202736bbbae1e651b98 /src/keystore.cpp | |
| parent | CAddrDB::LoadAddresses: properly initialize CAddress (diff) | |
| download | discoin-687c82558cc568f37eb1fb24bfb3c351e49d6735.tar.xz discoin-687c82558cc568f37eb1fb24bfb3c351e49d6735.zip | |
Fix EncryptKeys crash introduced by a9ba4710, identified by TD.
Diffstat (limited to 'src/keystore.cpp')
| -rw-r--r-- | src/keystore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keystore.cpp b/src/keystore.cpp index 2125d8472..1828d6ddd 100644 --- a/src/keystore.cpp +++ b/src/keystore.cpp @@ -154,7 +154,7 @@ bool CCryptoKeyStore::EncryptKeys(CKeyingMaterial& vMasterKeyIn) CKey key; BOOST_FOREACH(KeyMap::value_type& mKey, mapKeys) { - if (!key.SetPrivKey(mKey.second)) + if (!key.SetSecret(mKey.second)) return false; const std::vector<unsigned char> vchPubKey = key.GetPubKey(); std::vector<unsigned char> vchCryptedSecret; |