diff options
author | Shawn Willden <swillden@google.com> | 2017-06-20 17:27:55 -0600 |
---|---|---|
committer | Shawn Willden <swillden@google.com> | 2017-06-20 17:28:39 -0600 |
commit | 0143be76b9c54df1333d12c0b5cc8cd8cedf47c3 (patch) | |
tree | b9d4d5ace0be13349ad5ff00ab412f1371ad2139 | |
parent | fc764df649a1427e29fd1e445d5e70068aedd129 (diff) | |
download | security-0143be76b9c54df1333d12c0b5cc8cd8cedf47c3.tar.gz |
Compare auth token ID fields, instead of type twice.
Test: manual
Change-Id: I66dea9bfdfe4fcbb507926319bfe89cd3a1fe989
-rw-r--r-- | keystore/auth_token_table.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/keystore/auth_token_table.cpp b/keystore/auth_token_table.cpp index 3f476cd8..eea24c97 100644 --- a/keystore/auth_token_table.cpp +++ b/keystore/auth_token_table.cpp @@ -235,7 +235,7 @@ bool AuthTokenTable::Entry::Supersedes(const Entry& entry) const { return (token_->userId == entry.token_->userId && token_->authenticatorType == entry.token_->authenticatorType && - token_->authenticatorType == entry.token_->authenticatorType && + token_->authenticatorId == entry.token_->authenticatorId && timestamp_host_order() > entry.timestamp_host_order()); } |