commit | 00f4aade5c172534c16070540d1c6c26d0a78c84 | [log] [tgz] |
---|---|---|
author | Paul Lawrence <paullawrence@google.com> | Wed May 06 13:53:43 2015 -0700 |
committer | Paul Lawrence <paullawrence@google.com> | Wed May 06 13:56:16 2015 -0700 |
tree | 404ee45a1c9a68e3f25e0690475d7ae7a8ecd475 | |
parent | eae7fc77b60962c9384b31e0f98d14724731ce88 [diff] [blame] |
Delete password as per block encryption Bug: 18151196 Change-Id: Iee0f932c61ff4a309dc2861725b24bf976adb4c7
diff --git a/cryptfs.c b/cryptfs.c index 5598671..5422f52 100644 --- a/cryptfs.c +++ b/cryptfs.c
@@ -3805,6 +3805,10 @@ void cryptfs_clear_password() { + if (e4crypt_crypto_complete(DATA_MNT_POINT) == 0) { + e4crypt_clear_password(DATA_MNT_POINT); + } + if (password) { size_t len = strlen(password); memset(password, 0, len);