Fix uninitialized keyUsage in DecodeKeyUsage.

This commit is contained in:
jordan
2023-12-27 22:58:52 -06:00
parent 457188f55e
commit 46bf30ca77

View File

@@ -19301,6 +19301,7 @@ static int DecodeKeyUsage(const byte* input, word32 sz, DecodedCert* cert)
/* Clear dynamic data and set where to store extended key usage. */
XMEMSET(dataASN, 0, sizeof(dataASN));
XMEMSET(keyUsage, 0, sizeof(keyUsage));
GetASN_Buffer(&dataASN[KEYUSAGEASN_IDX_STR], keyUsage, &keyUsageSz);
/* Parse key usage. */
ret = GetASN_Items(keyUsageASN, dataASN, keyUsageASN_Length, 0, input,