Skip to content

Commit 6d1416d

Browse files
author
Andras Fekete
committed
addressing PR comments
1 parent 28bd4eb commit 6d1416d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/kdf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ int wc_PRF_TLS(byte* digest, word32 digLen, const byte* secret, word32 secLen,
571571
(void)heap;
572572
/* okmLen (2) + protocol|label len (1) + info len(1) + protocollen +
573573
* labellen + infolen */
574-
len = (size_t)4 + protocolLen + labelLen + infoLen;
574+
len = 4U + protocolLen + labelLen + infoLen;
575575

576576
data = (byte*)XMALLOC(len, heap, DYNAMIC_TYPE_TMP_BUFFER);
577577
if (data == NULL)

0 commit comments

Comments
 (0)