wipe pw before losing reference

[ci skip]
This commit is contained in:
Sebastian Stenzel
2021-12-16 13:59:10 +01:00
parent 0bece0f591
commit 85a5146d4b

View File

@@ -100,6 +100,7 @@ public class MasterkeyFileLoadingStrategy implements KeyLoadingStrategy {
public boolean recoverFromException(MasterkeyLoadingFailedException exception) {
if (exception instanceof InvalidPassphraseException) {
this.wrongPassphrase = true;
Arrays.fill(passphrase, '\0');
this.passphrase = null;
return true; // reattempting key load
} else {