VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2019-12-05 15:09:40 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-12-05 15:09:40 (GMT)
commit5a564629597b94399648378f4520bc262e369cf9 (patch)
treeb929515a2c03d70d4b32d5b72556b92a5b21d439
parent4a215c2ddbb3a960c28f9f5a79e3d7ad8de77496 (diff)
downloadVeraCrypt-5a564629597b94399648378f4520bc262e369cf9.zip
VeraCrypt-5a564629597b94399648378f4520bc262e369cf9.tar.gz
Make sure password gets deleted in case of exception in CoreUnix::MountVolume (#565)
-rw-r--r--src/Core/Unix/CoreUnix.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Core/Unix/CoreUnix.cpp b/src/Core/Unix/CoreUnix.cpp
index 423b565..499ea43 100644
--- a/src/Core/Unix/CoreUnix.cpp
+++ b/src/Core/Unix/CoreUnix.cpp
@@ -465,6 +465,7 @@ namespace VeraCrypt
continue;
}
+ options.Password.reset();
throw;
}