Added the WOLFSSL_NO_MALLOC option for the realloc callback as well.

This commit is contained in:
David Garske 2018-02-15 07:15:30 -08:00
parent 8285648e46
commit 8c8ed06202

View File

@ -154,7 +154,11 @@ void* wolfSSL_Realloc(void *ptr, size_t size)
#endif
}
else {
#ifndef WOLFSSL_NO_MALLOC
res = realloc(ptr, size);
#else
WOLFSSL_MSG("No realloc available");
#endif
}
return res;