Merge pull request #492 from JacobBarthelmeh/staticmemory

set heap hint for ctx
This commit is contained in:
toddouska 2016-07-20 20:25:38 -07:00 committed by GitHub
commit 8f2af608a7
1 changed files with 1 additions and 0 deletions

View File

@ -712,6 +712,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