addressing PR comments

This commit is contained in:
Andras Fekete
2024-05-14 14:17:16 -04:00
parent 28bd4ebeea
commit 6d1416d006

View File

@ -571,7 +571,7 @@ int wc_PRF_TLS(byte* digest, word32 digLen, const byte* secret, word32 secLen,
(void)heap;
/* okmLen (2) + protocol|label len (1) + info len(1) + protocollen +
* labellen + infolen */
len = (size_t)4 + protocolLen + labelLen + infoLen;
len = 4U + protocolLen + labelLen + infoLen;
data = (byte*)XMALLOC(len, heap, DYNAMIC_TYPE_TMP_BUFFER);
if (data == NULL)