From 220f950ab1302f8f8c0bb5b9c818f3d6569796bd Mon Sep 17 00:00:00 2001 From: Yuri Zhykin Date: Wed, 20 Apr 2016 00:03:42 +0300 Subject: Fix for incorrect locking in GetPubKey() (keystore.cpp) --- src/keystore.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/keystore.cpp b/src/keystore.cpp index cc8a573367..d568a74350 100644 --- a/src/keystore.cpp +++ b/src/keystore.cpp @@ -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; -- cgit v1.2.3