summaryrefslogtreecommitdiff
path: root/librabbitmq/amqp_openssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'librabbitmq/amqp_openssl.c')
-rw-r--r--librabbitmq/amqp_openssl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/librabbitmq/amqp_openssl.c b/librabbitmq/amqp_openssl.c
index 7902272..e9f71f2 100644
--- a/librabbitmq/amqp_openssl.c
+++ b/librabbitmq/amqp_openssl.c
@@ -623,7 +623,10 @@ static int initialize_ssl_and_increment_connections() {
}
if (!openssl_bio_initialized) {
- amqp_openssl_bio_init();
+ status = amqp_openssl_bio_init();
+ if (status) {
+ goto exit;
+ }
openssl_bio_initialized = 1;
}
@@ -654,6 +657,9 @@ int amqp_uninitialize_ssl_library(void) {
goto out;
}
+ amqp_openssl_bio_destroy();
+ openssl_bio_initialized = 0;
+
ERR_remove_state(0);
FIPS_mode_set(0);