mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-23 04:54:30 +00:00
Fix EncryptKeys crash introduced by a9ba4710, identified by TD.
This commit is contained in:
parent
a139ed74f2
commit
687c82558c
@ -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…
x
Reference in New Issue
Block a user