Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ssl
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-11-19 14:55:47 +0300
committerBodo Möller <bodo@openssl.org>2002-11-19 14:55:47 +0300
commit8faad520ae323c1fa2a49aa69b4decfbe3452e71 (patch)
tree21edc5cc59af06c5605958d1e0603723c73ab17f /ssl
parent8f89ae928b31e62aa5efdcb7c497693bac76bf52 (diff)
allocate bio_err before memory debugging is enabled to avoid memory leaks
(we can't release it before the CRYPTO_mem_leaks() call!) Submitted by: Nils Larsch
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssltest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c
index ed163a22fb..692f6a397e 100644
--- a/ssl/ssltest.c
+++ b/ssl/ssltest.c
@@ -367,7 +367,9 @@ int main(int argc, char *argv[])
verbose = 0;
debug = 0;
cipher = 0;
-
+
+ bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
+
CRYPTO_set_locking_callback(lock_dbg_cb);
/* enable memory leak checking unless explicitly disabled */
@@ -385,7 +387,6 @@ int main(int argc, char *argv[])
RAND_seed(rnd_seed, sizeof rnd_seed);
- bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
bio_stdout=BIO_new_fp(stdout,BIO_NOCLOSE);
argc--;