VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/Volumes.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Common/Volumes.c b/src/Common/Volumes.c
index 178f47f0..0940941d 100644
--- a/src/Common/Volumes.c
+++ b/src/Common/Volumes.c
@@ -249,6 +249,7 @@ int ReadVolumeHeader (BOOL bBoot, char *encryptedHeader, Password *password, int
#if !defined(DEVICE_DRIVER)
VirtualLock (&keyInfo, sizeof (keyInfo));
VirtualLock (&dk, sizeof (dk));
+ VirtualLock (&header, sizeof (header));
#endif
#endif // !defined(_UEFI)
@@ -571,10 +572,12 @@ err:
ret:
burn (&keyInfo, sizeof (keyInfo));
burn (dk, sizeof(dk));
+ burn (header, sizeof(header));
#if !defined(DEVICE_DRIVER) && !defined(_UEFI)
VirtualUnlock (&keyInfo, sizeof (keyInfo));
VirtualUnlock (&dk, sizeof (dk));
+ VirtualUnlock (&header, sizeof (header));
#endif
#if !defined(_UEFI)