From f69e5d6a1950b69fcae6ba1cc2b1c3a3b0171989 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 14 Nov 2011 14:15:29 +0000 Subject: [PATCH] Call OPENSSL_init after we've checked to see if customisation is permissible. --- crypto/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/mem.c b/crypto/mem.c index 46a4e6c6dd..8f736c3b1f 100644 --- a/crypto/mem.c +++ b/crypto/mem.c @@ -185,9 +185,9 @@ int CRYPTO_set_mem_debug_functions(void (*m)(void *,int,const char *,int,int), void (*so)(long), long (*go)(void)) { - OPENSSL_init(); if (!allow_customize_debug) return 0; + OPENSSL_init(); malloc_debug_func=m; realloc_debug_func=r; free_debug_func=f; -- 2.25.1