We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5305170 + 8ec3bca commit 9bbef7dCopy full SHA for 9bbef7d
1 file changed
src/internal.c
@@ -993,7 +993,8 @@ WOLFSSH* SshInit(WOLFSSH* ssh, WOLFSSH_CTX* ctx)
993
handshake = HandshakeInfoNew(heap);
994
rng = (WC_RNG*)WMALLOC(sizeof(WC_RNG), heap, DYNTYPE_RNG);
995
996
- if (handshake == NULL || rng == NULL || wc_InitRng(rng) != 0) {
+ if (handshake == NULL || rng == NULL ||
997
+ wc_InitRng_ex(rng, heap, INVALID_DEVID) != 0) {
998
999
WLOG(WS_LOG_DEBUG, "SshInit: Cannot allocate memory.\n");
1000
WFREE(handshake, heap, DYNTYPE_HS);
0 commit comments