diff options
| author | Pieter Wuille <[email protected]> | 2016-04-21 13:54:19 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-04-21 13:57:07 +0200 |
| commit | bafd075c5e6a1088ef0f1aa0b0b224e026a3d3e0 (patch) | |
| tree | 053e96eac1cbbafb493b53af8fa3cae2d2467974 /src/keystore.cpp | |
| parent | Merge #7868: net: Split DNS resolving functionality out of net structures (diff) | |
| parent | Fix for incorrect locking in GetPubKey() (keystore.cpp) (diff) | |
| download | discoin-bafd075c5e6a1088ef0f1aa0b0b224e026a3d3e0.tar.xz discoin-bafd075c5e6a1088ef0f1aa0b0b224e026a3d3e0.zip | |
Merge #7913: Fix for incorrect locking in GetPubKey() (keystore.cpp)
220f950 Fix for incorrect locking in GetPubKey() (keystore.cpp) (Yuri Zhykin)
Diffstat (limited to 'src/keystore.cpp')
| -rw-r--r-- | src/keystore.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/keystore.cpp b/src/keystore.cpp index cc8a57336..d568a7435 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; |