Allocate bio_err before turning on memleak checks
Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
parent
48cc4ad020
commit
d1b105827a
@ -471,6 +471,8 @@ int main(int argc, char *argv[])
|
|||||||
CAfile = argv[2];
|
CAfile = argv[2];
|
||||||
tlsafile = argv[3];
|
tlsafile = argv[3];
|
||||||
|
|
||||||
|
bio_err = BIO_new_fp(stderr, BIO_NOCLOSE | BIO_FP_TEXT);
|
||||||
|
|
||||||
p = getenv("OPENSSL_DEBUG_MEMORY");
|
p = getenv("OPENSSL_DEBUG_MEMORY");
|
||||||
if (p != NULL && strcmp(p, "on") == 0)
|
if (p != NULL && strcmp(p, "on") == 0)
|
||||||
CRYPTO_set_mem_debug(1);
|
CRYPTO_set_mem_debug(1);
|
||||||
@ -483,8 +485,6 @@ int main(int argc, char *argv[])
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bio_err = BIO_new_fp(stderr, BIO_NOCLOSE | BIO_FP_TEXT);
|
|
||||||
|
|
||||||
SSL_library_init();
|
SSL_library_init();
|
||||||
SSL_load_error_strings();
|
SSL_load_error_strings();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user