Fix cherry pick of unpacking enum

Merge from Widevine repo of http://go/wvgerrit/158251

The cherry pick of http://go/wvgerrit/157958 was not complete.

Bug: 251827716
Test: tested with http://go/ag/20420224

Change-Id: Icd4d2f23003ab621bf690ca3dcf1de2f0c5afc45
This commit is contained in:
Fred Gylys-Colwell
2022-11-08 13:49:07 -08:00
parent 7671db226a
commit 6161f812dc

View File

@@ -270,7 +270,7 @@ static void Unpack_ODK_ParsedLicenseV16(ODK_Message* msg,
Unpack_OEMCrypto_Substring(msg, &obj->enc_mac_keys);
Unpack_OEMCrypto_Substring(msg, &obj->pst);
Unpack_OEMCrypto_Substring(msg, &obj->srm_restriction_data);
obj->license_type = (OEMCrypto_LicenseType)Unpack_enum(msg);
Unpack_OEMCrypto_LicenseType(msg, &obj->license_type);
Unpack_bool(msg, &obj->nonce_required);
Unpack_ODK_TimerLimits(msg, &obj->timer_limits);
Unpack_uint32_t(msg, &obj->key_array_length);