diff options
author | Matt Caswell <matt@openssl.org> | 2016-03-11 21:53:18 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-04-14 13:19:04 +0100 |
commit | ff2344052bfa0132260ee3154962a2552f3d95f5 (patch) | |
tree | 4ab28127a480a46064e730088339e4fe6dbd7cfc /crypto/bio/bio_lib.c | |
parent | 085b3860651e2ff55e28f8a28a1f66b1a3fe538f (diff) |
Ensure all locks are properly cleaned up
Some locks were not being properly cleaned up during close down.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/bio/bio_lib.c')
-rw-r--r-- | crypto/bio/bio_lib.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/bio/bio_lib.c b/crypto/bio/bio_lib.c index ac98cf2402..025869454f 100644 --- a/crypto/bio/bio_lib.c +++ b/crypto/bio/bio_lib.c @@ -644,3 +644,13 @@ uint64_t BIO_number_written(BIO *bio) return bio->num_write; return 0; } + + +void bio_cleanup(void) +{ +#ifndef OPENSSL_NO_SOCK + bio_sock_cleanup_int(); + CRYPTO_THREAD_lock_free(bio_lookup_lock); + bio_lookup_lock = NULL; +#endif +} |