Skip to content

Commit

Permalink
add missing lock to crypter GetKeys()
Browse files Browse the repository at this point in the history
Issue: #10905
  • Loading branch information
Marko Bencun committed Jul 23, 2017
1 parent 5cb3da0 commit fe09b01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wallet/crypter.h
Expand Up @@ -173,6 +173,7 @@ class CCryptoKeyStore : public CBasicKeyStore
bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const override;
std::set<CKeyID> GetKeys() const override
{
LOCK(cs_KeyStore);
if (!IsCrypted()) {
return CBasicKeyStore::GetKeys();
}
Expand Down

0 comments on commit fe09b01

Please sign in to comment.