diff options
Diffstat (limited to 'src/regress/lib/libssl/ssl/ssltest.c')
| -rw-r--r-- | src/regress/lib/libssl/ssl/ssltest.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/regress/lib/libssl/ssl/ssltest.c b/src/regress/lib/libssl/ssl/ssltest.c index 879bf4b3ed..38c70906bb 100644 --- a/src/regress/lib/libssl/ssl/ssltest.c +++ b/src/regress/lib/libssl/ssl/ssltest.c | |||
| @@ -458,16 +458,6 @@ main(int argc, char *argv[]) | |||
| 458 | 458 | ||
| 459 | CRYPTO_set_locking_callback(lock_dbg_cb); | 459 | CRYPTO_set_locking_callback(lock_dbg_cb); |
| 460 | 460 | ||
| 461 | /* enable memory leak checking unless explicitly disabled */ | ||
| 462 | if (!((getenv("OPENSSL_DEBUG_MEMORY") != NULL) && (0 == strcmp(getenv("OPENSSL_DEBUG_MEMORY"), "off")))) { | ||
| 463 | CRYPTO_malloc_debug_init(); | ||
| 464 | CRYPTO_set_mem_debug_options(V_CRYPTO_MDEBUG_ALL); | ||
| 465 | } else { | ||
| 466 | /* OPENSSL_DEBUG_MEMORY=off */ | ||
| 467 | CRYPTO_set_mem_debug_functions(0, 0, 0, 0, 0); | ||
| 468 | } | ||
| 469 | CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); | ||
| 470 | |||
| 471 | bio_stdout = BIO_new_fp(stdout, BIO_NOCLOSE|BIO_FP_TEXT); | 461 | bio_stdout = BIO_new_fp(stdout, BIO_NOCLOSE|BIO_FP_TEXT); |
| 472 | 462 | ||
| 473 | argc--; | 463 | argc--; |
| @@ -2148,7 +2138,7 @@ psk_client_callback(SSL *ssl, const char *hint, char *identity, | |||
| 2148 | unsigned int psk_len = 0; | 2138 | unsigned int psk_len = 0; |
| 2149 | 2139 | ||
| 2150 | ret = snprintf(identity, max_identity_len, "Client_identity"); | 2140 | ret = snprintf(identity, max_identity_len, "Client_identity"); |
| 2151 | if (ret >= max_identity_len || ret == -1) | 2141 | if (ret == -1 || (unsigned int)ret >= max_identity_len) |
| 2152 | goto out_err; | 2142 | goto out_err; |
| 2153 | if (debug) | 2143 | if (debug) |
| 2154 | fprintf(stderr, "client: created identity '%s' len=%d\n", identity, ret); | 2144 | fprintf(stderr, "client: created identity '%s' len=%d\n", identity, ret); |
