diff options
| author | 2025-11-01 14:40:49 +0000 | |
|---|---|---|
| committer | 2025-11-02 21:28:32 +0000 | |
| commit | 95e08bc907eebbe0cc363b110eacf0cfe07eb5c9 (patch) | |
| tree | 66874bc3c403adcc8619563971fd638a2ee11610 /src/modules | |
| parent | Bump actions/download-artifact from 5 to 6 (diff) | |
Remove a long-obsolete workaround from ssl_openssl.
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 9 |
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; } } |
