diff options
author | Marko Bencun <marko.bencun@monetas.net> | 2017-07-23 23:37:56 +0200 |
---|---|---|
committer | Marko Bencun <marko.bencun@monetas.net> | 2017-07-23 23:38:55 +0200 |
commit | fe09b0197c20dc3c0a614c1a94dac708ef206743 (patch) | |
tree | faa9bd0c0566a9eff9f1bd684ae6763b1baf3f42 /src/wallet/crypter.h | |
parent | 5cb3da04b8882ca975b4e3d6c089c64bbaf67d0d (diff) |
add missing lock to crypter GetKeys()
Issue: #10905
Diffstat (limited to 'src/wallet/crypter.h')
-rw-r--r-- | src/wallet/crypter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/crypter.h b/src/wallet/crypter.h index d6f3e27721..0295004cb3 100644 --- a/src/wallet/crypter.h +++ b/src/wallet/crypter.h @@ -173,6 +173,7 @@ public: bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const override; std::set<CKeyID> GetKeys() const override { + LOCK(cs_KeyStore); if (!IsCrypted()) { return CBasicKeyStore::GetKeys(); } |