diff options
author | Peter Powell <petpow@saberuk.com> | 2019-01-23 14:46:20 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-01-23 15:16:07 +0000 |
commit | 806e4006199a057e0e7f82420a491e8fe6dd15cb (patch) | |
tree | dfedc4e149f22a374ce87f1071aa81e395d804bf /src | |
parent | 997e570fe4f609efbdc95a277286ccbba866a00d (diff) |
Fix a crash in m_sslinfo when a socket is SSL but a gateway is not.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_sslinfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<std::string*>(old); + free(container, unset_raw(container)); } std::string serialize(SerializeFormat format, const Extensible* container, void* item) const CXX11_OVERRIDE |