mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
Added the WOLFSSL_NO_MALLOC
option for the realloc callback as well.
This commit is contained in:
@@ -154,7 +154,11 @@ void* wolfSSL_Realloc(void *ptr, size_t size)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
#ifndef WOLFSSL_NO_MALLOC
|
||||||
res = realloc(ptr, size);
|
res = realloc(ptr, size);
|
||||||
|
#else
|
||||||
|
WOLFSSL_MSG("No realloc available");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
Reference in New Issue
Block a user