Call OPENSSL_init after we've checked to see if customisation is permissible.

This commit is contained in:
Dr. Stephen Henson 2011-11-14 14:15:29 +00:00
parent 3517637702
commit f69e5d6a19

View File

@ -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;