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