Commit 7169a847 authored by Chad Brubaker's avatar Chad Brubaker Committed by Alex Klyubin
Browse files

Fix addOperationAuthTokenIfNeeded lookup

(cherry picked from commit 6b541163)

Bug: 20702036
Change-Id: I4caa9f7a6e6e2b05f63b12180a5af65d3a5c0bac
parent 0cf34a24
......@@ -2947,8 +2947,8 @@ private:
int32_t addOperationAuthTokenIfNeeded(sp<IBinder> token,
std::vector<keymaster_key_param_t>* params) {
const hw_auth_token_t* authToken = NULL;
bool authTokenNeeded = !mOperationMap.getOperationAuthToken(token, &authToken);
if (authTokenNeeded) {
mOperationMap.getOperationAuthToken(token, &authToken);
if (!authToken) {
const keymaster1_device_t* dev;
keymaster_operation_handle_t handle;
const keymaster_key_characteristics_t* characteristics = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment