From 5d8a78be305ee5a79a179c0f5f766b2341bc69d4 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Tue, 19 Jul 2016 09:34:29 -0600 Subject: [PATCH] set heap hint for ctx --- src/ssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ssl.c b/src/ssl.c index 3e54b519f..0cce79af9 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -702,6 +702,7 @@ int wolfSSL_CTX_load_static_memory(WOLFSSL_CTX** ctx, wolfSSL_method_func method idx += sizeof(WOLFSSL_HEAP_HINT); XMEMSET(hint, 0, sizeof(WOLFSSL_HEAP_HINT)); hint->memory = heap; + (*ctx)->heap = (void*)hint; } else { #ifdef WOLFSSL_HEAP_TEST