From 806e4006199a057e0e7f82420a491e8fe6dd15cb Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 23 Jan 2019 14:46:20 +0000 Subject: Fix a crash in m_sslinfo when a socket is SSL but a gateway is not. --- src/modules/m_sslinfo.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 54aeb9755..30dfd9a76 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -54,8 +54,7 @@ class SSLCertExt : public ExtensionItem void unset(Extensible* container) { - void* old = unset_raw(container); - delete static_cast(old); + free(container, unset_raw(container)); } std::string serialize(SerializeFormat format, const Extensible* container, void* item) const CXX11_OVERRIDE -- cgit v1.2.3