commit | 2d76f6d0bc01d618ee28756a5843732c15dc35ca | [log] [tgz] |
---|---|---|
author | Mike McTernan <mikemcternan@google.com> | Mon Apr 08 15:37:23 2024 +0100 |
committer | Mike McTernan <mikemcternan@google.com> | Mon Apr 08 16:08:36 2024 +0100 |
tree | bc10f9ee2cad950cc70547d5592409db72c50d3b | |
parent | 93e253ae87e019dbe0c88216c9ab0bb5ed2f0db8 [diff] |
trusty: cast-auth: fix incorrect return value on error path The function returns a bool to identify the keytype, but would return an error code on memory failure. Change the function to avoid the memory allocation failure path. Bug: 332371854 Test: build.py qemu-generic-arm64-test-debug --test com.android.trusty.cast_auth.test Change-Id: Idc0f4b2484ec5b00bf97eed3647196ef2da463bb