Permalink
Browse files

Merge pull request #436 from TheBlueMatt/master

Fix EncryptKeys crash introduced by a9ba471, identified by TD.
  • Loading branch information...
2 parents a139ed7 + 687c825 commit e1f13129e89f46df631f9523eea4c0e0448c9b7b @sipa sipa committed Jul 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/keystore.cpp
View
@@ -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;

0 comments on commit e1f1312

Please sign in to comment.