So it is possible to change the allocator implementation,
as it must be before the first malloc call.
Suggested-by: Matt Caswell <matt@openssl.org>
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28059)
{
int ret = EXIT_FAILURE;
int setup_res;
+ int gi_ret;
+
+ gi_ret = global_init();
test_open_streams();
- if (!global_init()) {
+ if (!gi_ret) {
test_printf_stderr("Global init failed - aborting\n");
return ret;
}