Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa67c8fc authored by Shawn Willden's avatar Shawn Willden
Browse files

Fix Keymaster HAL crash.

Test: VTS test validates this fix
Change-Id: I5996c2166cf4141c97424df64a380f45b001d52e
parent 30f78a13
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -547,6 +547,7 @@ Return<void> KeymasterDevice::attestKey(const hidl_vec<uint8_t>& keyToAttest,
    if (!foundAttestationApplicationId) {
    if (!foundAttestationApplicationId) {
        _hidl_cb(ErrorCode::ATTESTATION_APPLICATION_ID_MISSING,
        _hidl_cb(ErrorCode::ATTESTATION_APPLICATION_ID_MISSING,
                 resultCertChain);
                 resultCertChain);
        return Void();
    }
    }


    keymaster_cert_chain_t cert_chain{nullptr, 0};
    keymaster_cert_chain_t cert_chain{nullptr, 0};