aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-11-01 14:40:49 +0000
committerGravatar Sadie Powell2025-11-02 21:28:32 +0000
commit95e08bc907eebbe0cc363b110eacf0cfe07eb5c9 (patch)
tree66874bc3c403adcc8619563971fd638a2ee11610 /src
parentBump actions/download-artifact from 5 to 6 (diff)
Remove a long-obsolete workaround from ssl_openssl.
Diffstat (limited to 'src')
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 36dac31c4..67c334efd 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -501,14 +501,6 @@ namespace OpenSSL
return 1;
}
- static int destroy(BIO* bio)
- {
- // XXX: Dummy function to avoid a memory leak in OpenSSL.
- // The memory leak happens in BIO_free() (bio_lib.c) when the destroy func of the BIO is NULL.
- // This is fixed in OpenSSL but some distros still ship the unpatched version hence we provide this workaround.
- return 1;
- }
-
static long ctrl(BIO* bio, int cmd, long num, void* ptr)
{
if (cmd == BIO_CTRL_FLUSH)
@@ -528,7 +520,6 @@ namespace OpenSSL
BIO_meth_set_read(meth, OpenSSL::BIOMethod::read);
BIO_meth_set_ctrl(meth, OpenSSL::BIOMethod::ctrl);
BIO_meth_set_create(meth, OpenSSL::BIOMethod::create);
- BIO_meth_set_destroy(meth, OpenSSL::BIOMethod::destroy);
return meth;
}
}