Fix error in clocks leading to devices staying unlocked
Use BOOTTIME consistently! Bug: 18246810 Change-Id: I630bf39f72ab69f971d2f772e8d4545ffe467b82
This commit is contained in:
parent
bb7d9afea9
commit
ef2b5bea6b
1 changed files with 1 additions and 1 deletions
|
@ -3739,7 +3739,7 @@ int cryptfs_get_password_type(void)
|
||||||
char* cryptfs_get_password()
|
char* cryptfs_get_password()
|
||||||
{
|
{
|
||||||
struct timespec now;
|
struct timespec now;
|
||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_BOOTTIME, &now);
|
||||||
if (now.tv_sec < password_expiry_time) {
|
if (now.tv_sec < password_expiry_time) {
|
||||||
return password;
|
return password;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue