Permalink
Browse files

Merge #7913: Fix for incorrect locking in GetPubKey() (keystore.cpp)

220f950 Fix for incorrect locking in GetPubKey() (keystore.cpp) (Yuri Zhykin)
  • Loading branch information...
sipa committed Apr 21, 2016
2 parents 7daa3ad + 220f950 commit bafd075c5e6a1088ef0f1aa0b0b224e026a3d3e0
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/keystore.cpp
View
@@ -19,6 +19,7 @@ bool CBasicKeyStore::GetPubKey(const CKeyID &address, CPubKey &vchPubKeyOut) con
{
CKey key;
if (!GetKey(address, key)) {
LOCK(cs_KeyStore);
WatchKeyMap::const_iterator it = mapWatchKeys.find(address);
if (it != mapWatchKeys.end()) {
vchPubKeyOut = it->second;

0 comments on commit bafd075

Please sign in to comment.