summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-11 22:36:54 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-11 22:36:54 +0000
commit9303e7eb5180da4d87a999ac90d4f723ebbeca79 (patch)
treef8d17af41bc781fa860ffb9665dbabd1c25d83b6 /src/modules
parent56ee2476c99dff39e3a6d0b32387b21b917a18c2 (diff)
Extra checks to not set the ssl marker twice on re-handshake (nonfatal but wasteful)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3168 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp3
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp3
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;