commit | ef2b5bea6b72331568036788c6fcaadf63f1f178 | [log] [tgz] |
---|---|---|
author | Paul Lawrence <paullawrence@google.com> | Tue Nov 11 12:47:03 2014 -0800 |
committer | Paul Lawrence <paullawrence@google.com> | Tue Dec 02 08:03:15 2014 -0800 |
tree | 923f01b223cc4acfb7a8a4d3e7510e129d545622 | |
parent | bb7d9afea9479eabbc98133d3d968225a1e1019e [diff] [blame] |
Fix error in clocks leading to devices staying unlocked Use BOOTTIME consistently! Bug: 18246810 Change-Id: I630bf39f72ab69f971d2f772e8d4545ffe467b82
diff --git a/cryptfs.c b/cryptfs.c index e9d6afb..2a6586b 100644 --- a/cryptfs.c +++ b/cryptfs.c
@@ -3739,7 +3739,7 @@ char* cryptfs_get_password() { struct timespec now; - clock_gettime(CLOCK_MONOTONIC, &now); + clock_gettime(CLOCK_BOOTTIME, &now); if (now.tv_sec < password_expiry_time) { return password; } else {