Skip to content

Commit fe09b01

Browse files
author
Marko Bencun
committed
add missing lock to crypter GetKeys()
Issue: #10905
1 parent 5cb3da0 commit fe09b01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wallet/crypter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ class CCryptoKeyStore : public CBasicKeyStore
173173
bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const override;
174174
std::set<CKeyID> GetKeys() const override
175175
{
176+
LOCK(cs_KeyStore);
176177
if (!IsCrypted()) {
177178
return CBasicKeyStore::GetKeys();
178179
}

0 commit comments

Comments
 (0)