aboutsummaryrefslogtreecommitdiff
path: root/src/crypter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypter.cpp')
-rw-r--r--src/crypter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/crypter.cpp b/src/crypter.cpp
index 2f94e08273..122e06d97e 100644
--- a/src/crypter.cpp
+++ b/src/crypter.cpp
@@ -178,6 +178,8 @@ bool CCryptoKeyStore::Unlock(const CKeyingMaterial& vMasterKeyIn)
break;
}
keyPass = true;
+ if (fDecryptionThoroughlyChecked)
+ break;
}
if (keyPass && keyFail)
{
@@ -187,6 +189,7 @@ bool CCryptoKeyStore::Unlock(const CKeyingMaterial& vMasterKeyIn)
if (keyFail || !keyPass)
return false;
vMasterKey = vMasterKeyIn;
+ fDecryptionThoroughlyChecked = true;
}
NotifyStatusChanged(this);
return true;