Merge "[gatekeeperd] invalidate stale password cache" into mnc-dev
This commit is contained in:
commit
b2856ddbd3
1 changed files with 2 additions and 2 deletions
|
|
@ -151,8 +151,8 @@ public:
|
||||||
|
|
||||||
bool DoVerify(const password_handle_t *expected_handle, const SizedBuffer &password) {
|
bool DoVerify(const password_handle_t *expected_handle, const SizedBuffer &password) {
|
||||||
FastHashMap::const_iterator it = fast_hash_map_.find(expected_handle->user_id);
|
FastHashMap::const_iterator it = fast_hash_map_.find(expected_handle->user_id);
|
||||||
if (it != fast_hash_map_.end()) {
|
if (it != fast_hash_map_.end() && VerifyFast(it->second, password)) {
|
||||||
return VerifyFast(it->second, password);
|
return true;
|
||||||
} else {
|
} else {
|
||||||
if (GateKeeper::DoVerify(expected_handle, password)) {
|
if (GateKeeper::DoVerify(expected_handle, password)) {
|
||||||
uint64_t salt;
|
uint64_t salt;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue