Skip to content

Commit 9bbef7d

Browse files
authored
Merge pull request #749 from JacobBarthelmeh/static
pass heap hint to init rng call
2 parents 5305170 + 8ec3bca commit 9bbef7d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/internal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,8 @@ WOLFSSH* SshInit(WOLFSSH* ssh, WOLFSSH_CTX* ctx)
993993
handshake = HandshakeInfoNew(heap);
994994
rng = (WC_RNG*)WMALLOC(sizeof(WC_RNG), heap, DYNTYPE_RNG);
995995

996-
if (handshake == NULL || rng == NULL || wc_InitRng(rng) != 0) {
996+
if (handshake == NULL || rng == NULL ||
997+
wc_InitRng_ex(rng, heap, INVALID_DEVID) != 0) {
997998

998999
WLOG(WS_LOG_DEBUG, "SshInit: Cannot allocate memory.\n");
9991000
WFREE(handshake, heap, DYNTYPE_HS);

0 commit comments

Comments
 (0)