projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ensure all locks are properly cleaned up
[openssl.git]
/
crypto
/
bio
/
bio_lib.c
diff --git
a/crypto/bio/bio_lib.c
b/crypto/bio/bio_lib.c
index ac98cf240220ceb2268375977d76ec0c2ddf1847..025869454fa511a1f971692cfab4344652402339 100644
(file)
--- 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
+}