diff options
author | Richard Levitte <levitte@openssl.org> | 2015-06-21 19:19:17 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-06-21 21:45:48 +0200 |
commit | 03b672deca60ab1fb272f1a1e206769da969bc9a (patch) | |
tree | ca58742f89785eb9b0137d3d8ead894a69440fb6 | |
parent | 964626957f79e07ed97756527cdc7e84007c60c9 (diff) |
Cleanup mttest.c : use BIO_free only, no preceding hacks
Since [sc]_ssl->[rw]bio aren't available, do not try to fiddle with
them. Surely, a BIO_free on the "main" BIOs should be enough
Reviewed-by: Rich Salz <rsalz@openssl.org>
-rw-r--r-- | crypto/threads/mttest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/threads/mttest.c b/crypto/threads/mttest.c index 7bb431778f..a82f86a6dd 100644 --- a/crypto/threads/mttest.c +++ b/crypto/threads/mttest.c @@ -594,6 +594,7 @@ int doit(char *ctx[4]) SSL_set_shutdown(s_ssl, SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN); err: +#if 0 /* * We have to set the BIO's to NULL otherwise they will be free()ed * twice. Once when th s_ssl is SSL_free()ed and again when c_ssl is @@ -615,6 +616,7 @@ int doit(char *ctx[4]) /* The SSL's are optionally freed in the following calls */ BIO_free(c_to_s); BIO_free(s_to_c); +#endif BIO_free(c_bio); BIO_free(s_bio); |