Merge "Fix Keymaster HAL crash." into oc-dev

This commit is contained in:
TreeHugger Robot
2017-05-03 21:50:22 +00:00
committed by Android (Google) Code Review

View File

@@ -549,6 +549,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};