From: Matt Corallo Date: Wed, 27 Jul 2011 16:02:39 +0000 (+0200) Subject: Fix EncryptKeys crash introduced by a9ba4710, identified by TD. X-Git-Tag: v0.4.0-unstable~227^2~72^2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=687c82558cc568f37eb1fb24bfb3c351e49d6735 Fix EncryptKeys crash introduced by a9ba4710, identified by TD. --- diff --git a/src/keystore.cpp b/src/keystore.cpp index 2125d84..1828d6d 100644 --- a/src/keystore.cpp +++ b/src/keystore.cpp @@ -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 vchPubKey = key.GetPubKey(); std::vector vchCryptedSecret;