summaryrefslogtreecommitdiff
path: root/deps/openssl/openssl/crypto/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/openssl/openssl/crypto/mem.c')
-rw-r--r--deps/openssl/openssl/crypto/mem.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/deps/openssl/openssl/crypto/mem.c b/deps/openssl/openssl/crypto/mem.c
index 1cc62eafd1..ae40de37f4 100644
--- a/deps/openssl/openssl/crypto/mem.c
+++ b/deps/openssl/openssl/crypto/mem.c
@@ -121,11 +121,10 @@ static void (*set_debug_options_func)(long) = NULL;
static long (*get_debug_options_func)(void) = NULL;
#endif
+
int CRYPTO_set_mem_functions(void *(*m)(size_t), void *(*r)(void *, size_t),
void (*f)(void *))
{
- /* Dummy call just to ensure OPENSSL_init() gets linked in */
- OPENSSL_init();
if (!allow_customize)
return 0;
if ((m == 0) || (r == 0) || (f == 0))
@@ -187,7 +186,6 @@ int CRYPTO_set_mem_debug_functions(void (*m)(void *,int,const char *,int,int),
{
if (!allow_customize_debug)
return 0;
- OPENSSL_init();
malloc_debug_func=m;
realloc_debug_func=r;
free_debug_func=f;