Merge pull request #2685 from open-keychain/fix_changing_admin_key__issue_2684

Don't explicitly clear PIN when verifying admin PIN
This commit is contained in:
Dominik Schürmann 2021-04-03 14:29:07 +02:00 committed by GitHub
commit df2356995c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -414,7 +414,6 @@ public class SecurityTokenConnection {
// delete secrets from memory // delete secrets from memory
Arrays.fill(pin, (byte) 0); Arrays.fill(pin, (byte) 0);
Arrays.fill(transformedPin, (byte) 0); Arrays.fill(transformedPin, (byte) 0);
adminPin.removeFromMemory();
ResponseApdu response = communicate(verifyPw3Command); ResponseApdu response = communicate(verifyPw3Command);
if (!response.isSuccess()) { if (!response.isSuccess()) {