diff options
Diffstat (limited to 'keystore/keystore_client_impl.cpp')
| -rw-r--r-- | keystore/keystore_client_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/keystore/keystore_client_impl.cpp b/keystore/keystore_client_impl.cpp index 6d998ad..994e3f2 100644 --- a/keystore/keystore_client_impl.cpp +++ b/keystore/keystore_client_impl.cpp @@ -366,7 +366,7 @@ bool KeystoreClientImpl::doesKeyExist(const std::string& key_name) { int32_t result; auto binder_result = keystore_->exist(key_name16, kDefaultUID, &result); if (!binder_result.isOk()) return false; // binder error - return result; + return result == static_cast<int32_t>(ResponseCode::NO_ERROR); } bool KeystoreClientImpl::listKeys(const std::string& prefix, |
