diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 3 | ||||
-rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 4ba95f4a1..93b904958 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -527,7 +527,8 @@ class ModuleSSLGnuTLS : public Module userrec* extendme = Srv->FindDescriptor(session->fd); if (extendme) { - extendme->Extend("ssl", "ON"); + if (!extendme->GetExt("ssl")) + extendme->Extend("ssl", "ON"); } // Change the seesion state diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 3a0a01409..8b6404763 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -602,7 +602,8 @@ class ModuleSSLOpenSSL : public Module userrec* u = Srv->FindDescriptor(session->fd); if (u) { - u->Extend("ssl", "ON"); + if (!u->GetExt("ssl")) + u->Extend("ssl", "ON"); } session->status = ISSL_OPEN; |