set heap hint for ctx

This commit is contained in:
Jacob Barthelmeh 2016-07-19 09:34:29 -06:00
parent 8423ad0e96
commit 5d8a78be30

View File

@ -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