From fe09b0197c20dc3c0a614c1a94dac708ef206743 Mon Sep 17 00:00:00 2001 From: Marko Bencun Date: Sun, 23 Jul 2017 23:37:56 +0200 Subject: [PATCH] add missing lock to crypter GetKeys() Issue: #10905 --- src/wallet/crypter.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet/crypter.h b/src/wallet/crypter.h index d6f3e2772..0295004cb 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 GetKeys() const override { + LOCK(cs_KeyStore); if (!IsCrypted()) { return CBasicKeyStore::GetKeys(); }