Browse Source

Merge pull request #436 from TheBlueMatt/master

Fix EncryptKeys crash introduced by a9ba471, identified by TD.
tags/v0.15.1
Pieter Wuille 9 years ago
parent
commit
e1f13129e8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/keystore.cpp

+ 1
- 1
src/keystore.cpp View File

@@ -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;

Loading…
Cancel
Save