summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Willden <swillden@google.com>2017-09-08 17:38:22 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-09-08 17:38:22 +0000
commite978dd5a7ec9a09a09ab179c86599a130b00a37a (patch)
tree81a005c71fce4bb47a4c6b14b7b8d899d1f5b842
parentd70e416c46f3a3c1d5235c28d7f4c9e43f1e33ca (diff)
parent2f96c79a9c07b58bcfce0411e57894de55a52b6e (diff)
downloadsecurity-e978dd5a7ec9a09a09ab179c86599a130b00a37a.tar.gz
Fix keystore return code
am: 2f96c79a9c Change-Id: Ie604b001d8804a9d31e82e44f178d7ca7a309da9
-rw-r--r--keystore/key_store_service.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/keystore/key_store_service.cpp b/keystore/key_store_service.cpp
index 8a952572..c33a1d06 100644
--- a/keystore/key_store_service.cpp
+++ b/keystore/key_store_service.cpp
@@ -1163,7 +1163,9 @@ void KeyStoreService::begin(const sp<IBinder>& appToken, const String16& name, K
// application should get an auth token using the handle before the
// first call to update, which will fail if keystore hasn't received the
// auth token.
- result->resultCode = authResult;
+ if (result->resultCode == ErrorCode::OK) {
+ result->resultCode = authResult;
+ }
// Other result fields were set in the begin operation's callback.
}