Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ea9a06b authored by Andres Morales's avatar Andres Morales
Browse files

[gatekeeperd] invalidate stale password cache

password may change offline, invalidate the cache if it is
stale

Bug: 22019187
Change-Id: I2aaae978c8bd4629a0f93df3778d8679ae9b53d5
parent 835d96ea
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -151,8 +151,8 @@ public:

    bool DoVerify(const password_handle_t *expected_handle, const SizedBuffer &password) {
        FastHashMap::const_iterator it = fast_hash_map_.find(expected_handle->user_id);
        if (it != fast_hash_map_.end()) {
            return VerifyFast(it->second, password);
        if (it != fast_hash_map_.end() && VerifyFast(it->second, password)) {
            return true;
        } else {
            if (GateKeeper::DoVerify(expected_handle, password)) {
                uint64_t salt;