From e98802f5b22ca83e51f49ffa7bdd9f3f7cac9a14 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 7 Feb 2024 22:59:51 +0000 Subject: [PATCH] Fix https somehow. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4827 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tls.c b/src/tls.c index 7f09bb20..c71fde6b 100644 --- a/src/tls.c +++ b/src/tls.c @@ -46,14 +46,14 @@ bool tf_tls_context_set_certificate(tf_tls_context_t* context, const char* certi BIO_puts(bio, certificate); X509* x509 = PEM_read_bio_X509(bio, 0, 0, 0); result = SSL_CTX_use_certificate(context->context, x509); - X509_free(x509); + //X509_free(x509); while (true) { x509 = PEM_read_bio_X509(bio, 0, 0, 0); if (x509) { SSL_CTX_add_extra_chain_cert(context->context, x509); - X509_free(x509); + //X509_free(x509); } else {