If errno is ENXIO in BSS_new_file(), set BIO_R_NO_SUCH_FILE
[oweals/openssl.git] / crypto / bio / bio_lib.c
index 98f3707ea5881782587779612b0cd351e9c23eb4..62392c3a52157f7e2b562c9d54ca35e4de689d71 100644 (file)
@@ -595,4 +595,6 @@ void bio_cleanup(void)
     CRYPTO_THREAD_lock_free(bio_lookup_lock);
     bio_lookup_lock = NULL;
 #endif
+    CRYPTO_THREAD_lock_free(bio_type_lock);
+    bio_type_lock = NULL;
 }