mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-18 11:01:06 +00:00
Merge pull request #436 from TheBlueMatt/master
Fix EncryptKeys crash introduced by a9ba471, identified by TD.
This commit is contained in:
commit
e1f13129e8
@ -154,7 +154,7 @@ bool CCryptoKeyStore::EncryptKeys(CKeyingMaterial& vMasterKeyIn)
|
|||||||
CKey key;
|
CKey key;
|
||||||
BOOST_FOREACH(KeyMap::value_type& mKey, mapKeys)
|
BOOST_FOREACH(KeyMap::value_type& mKey, mapKeys)
|
||||||
{
|
{
|
||||||
if (!key.SetPrivKey(mKey.second))
|
if (!key.SetSecret(mKey.second))
|
||||||
return false;
|
return false;
|
||||||
const std::vector<unsigned char> vchPubKey = key.GetPubKey();
|
const std::vector<unsigned char> vchPubKey = key.GetPubKey();
|
||||||
std::vector<unsigned char> vchCryptedSecret;
|
std::vector<unsigned char> vchCryptedSecret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user