Skip to content

Commit f8fd095

Browse files
committed
Add missing lock in crypter GetKeys.
1 parent 366bc8b commit f8fd095

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/crypter.h

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ class CCryptoKeyStore : public CBasicKeyStore
172172
bool GetPubKey(const CKeyID& address, CPubKey& vchPubKeyOut) const;
173173
void GetKeys(std::set<CKeyID>& setAddress) const
174174
{
175+
LOCK(cs_KeyStore);
175176
if (!IsCrypted()) {
176177
CBasicKeyStore::GetKeys(setAddress);
177178
return;

0 commit comments

Comments
 (0)