git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a139ed7
)
Fix EncryptKeys crash introduced by a9ba4710, identified by TD.
author
Matt Corallo
<matt@bluematt.me>
Wed, 27 Jul 2011 16:02:39 +0000 (18:02 +0200)
committer
Matt Corallo
<matt@bluematt.me>
Wed, 27 Jul 2011 16:02:39 +0000 (18:02 +0200)
src/keystore.cpp
patch
|
blob
|
history
diff --git
a/src/keystore.cpp
b/src/keystore.cpp
index
2125d84
..
1828d6d
100644
(file)
--- 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<unsigned char> vchPubKey = key.GetPubKey();
std::vector<unsigned char> vchCryptedSecret;