File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -687,6 +687,7 @@ bool CWallet::EncryptWallet(const SecureString& strWalletPassphrase)
687
687
{
688
688
encrypted_batch->TxnAbort ();
689
689
delete encrypted_batch;
690
+ encrypted_batch = nullptr ;
690
691
// We now probably have half of our keys encrypted in memory, and half not...
691
692
// die and let the user reload the unencrypted wallet.
692
693
assert (false );
@@ -697,6 +698,7 @@ bool CWallet::EncryptWallet(const SecureString& strWalletPassphrase)
697
698
698
699
if (!encrypted_batch->TxnCommit ()) {
699
700
delete encrypted_batch;
701
+ encrypted_batch = nullptr ;
700
702
// We now have keys encrypted in memory, but not on disk...
701
703
// die to avoid confusion and let the user reload the unencrypted wallet.
702
704
assert (false );
You can’t perform that action at this time.
0 commit comments