diff options
Diffstat (limited to 'gatekeeperd/SoftGateKeeper.h')
-rw-r--r-- | gatekeeperd/SoftGateKeeper.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gatekeeperd/SoftGateKeeper.h b/gatekeeperd/SoftGateKeeper.h index 4c16c52..75fe11d 100644 --- a/gatekeeperd/SoftGateKeeper.h +++ b/gatekeeperd/SoftGateKeeper.h @@ -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; |