add missing lock to crypter GetKeys()

Issue: #10905
This commit is contained in:
Marko Bencun 2017-07-23 23:37:56 +02:00
parent 5cb3da04b8
commit fe09b0197c
1 changed files with 1 additions and 0 deletions

View File

@ -173,6 +173,7 @@ public:
bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const override; bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const override;
std::set<CKeyID> GetKeys() const override std::set<CKeyID> GetKeys() const override
{ {
LOCK(cs_KeyStore);
if (!IsCrypted()) { if (!IsCrypted()) {
return CBasicKeyStore::GetKeys(); return CBasicKeyStore::GetKeys();
} }