Permalink
Browse files

Fix EncryptKeys crash introduced by a9ba471, identified by TD.

  • Loading branch information...
1 parent a139ed7 commit 687c82558cc568f37eb1fb24bfb3c351e49d6735 @TheBlueMatt TheBlueMatt 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 687c825

Please sign in to comment.