commit | 72b8b82780c062f48350d743c5ee43ced369507d | [log] [tgz] |
---|---|---|
author | Paul Lawrence <paullawrence@google.com> | Sun Oct 05 12:57:37 2014 -0700 |
committer | Paul Lawrence <paullawrence@google.com> | Sun Oct 05 22:38:04 2014 +0000 |
tree | 94eb1d9dd5056f44fee07255a39201ed976c15a0 | |
parent | 3574b085f46a5b22ee660a9fd3ef727a20c106ee [diff] [blame] |
Reset failed decryption count on successful decryptions Bug: 17866359 Change-Id: I1af2ff1ac4f5243afba0cfa2f2d3a1d0b029091b
diff --git a/cryptfs.c b/cryptfs.c index 84f5587..01dfec3 100644 --- a/cryptfs.c +++ b/cryptfs.c
@@ -1784,6 +1784,9 @@ if (rc == 0) { crypt_ftr->failed_decrypt_count = 0; + if (orig_failed_decrypt_count != 0) { + put_crypt_ftr_and_key(crypt_ftr); + } /* Save the name of the crypto block device * so we can mount it when restarting the framework. */