1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2026-06-17 10:06:06 -05:00

Windows: Fix regression causing crash when a wrong password is used when changing password of volumes

This commit is contained in:
Mounir IDRASSI
2024-08-24 18:02:16 +02:00
parent 25c88fe3d3
commit 380ca35c6d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -5443,7 +5443,7 @@ namespace VeraCrypt
finally_do_arg (PCRYPTO_INFO, cryptoInfo, { if (finally_arg) crypto_close (finally_arg); });
// if the XTS master key is vulnerable, return error and do not allow the user to change the password since the master key will not be changed
if (cryptoInfo->bVulnerableMasterKey)
if ((status == 0) && cryptoInfo->bVulnerableMasterKey)
status = ERR_SYSENC_XTS_MASTERKEY_VULNERABLE;
if (status != 0)