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

Commit 5227d3f7 authored by Jeff Tinker's avatar Jeff Tinker Committed by android-build-merger
Browse files

Fix abort in CryptoHal: missing hidl status check

am: cca23778

Change-Id: Ia3ced80685ac303726b9b6e4385046da304447c1
parents bb493a92 cca23778
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -223,10 +223,14 @@ bool CryptoHal::requiresSecureDecoderComponent(const char *mime) const {
    Mutex::Autolock autoLock(mLock);

    if (mInitCheck != OK) {
        return mInitCheck;
        return false;
    }

    return mPlugin->requiresSecureDecoderComponent(hidl_string(mime));
    Return<bool> hResult = mPlugin->requiresSecureDecoderComponent(hidl_string(mime));
    if (!hResult.isOk()) {
        return false;
    }
    return hResult;
}