diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/openssl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/openssl.c b/apps/openssl.c index c7ee7533b4..f65096a68b 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -228,7 +228,13 @@ int main(int Argc, char *Argv[]) arg.count=0; if (getenv("OPENSSL_DEBUG_MEMORY") != NULL) - CRYPTO_malloc_debug_init(); + { + if (!(0 == strcmp(getenv("OPENSSL_DEBUG_MEMORY"), "off"))) + { + CRYPTO_malloc_debug_init(); + CRYPTO_dbg_set_options(V_CRYPTO_MDEBUG_ALL); + } + } CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); #if 0 |