Fix Keymaster HAL crash.

Test: VTS test validates this fix
Change-Id: I5996c2166cf4141c97424df64a380f45b001d52e
This commit is contained in:
Shawn Willden
2017-04-24 08:10:55 -06:00
parent 30f78a13b0
commit fa67c8fc1d

View File

@@ -547,6 +547,7 @@ Return<void> KeymasterDevice::attestKey(const hidl_vec<uint8_t>& keyToAttest,
if (!foundAttestationApplicationId) {
_hidl_cb(ErrorCode::ATTESTATION_APPLICATION_ID_MISSING,
resultCertChain);
return Void();
}
keymaster_cert_chain_t cert_chain{nullptr, 0};