summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-25 01:09:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-25 01:09:22 +0000
commit563ad5acb0fb3d1aee5094989377d8b284d33d92 (patch)
treeda91b6d7909c52a4733e86da57da920d20d68d9c /src/modules
parent02b4d6de57cb65a9cd05a0458bb772b97b73e758 (diff)
Try this as the ssl crash fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10998 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp2
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index 96f35e14b..9a1f88cce 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -772,7 +772,7 @@ class ModuleSSLGnuTLS : public Module
virtual void OnBufferFlushed(User* user)
{
- if (user->GetIOHook() == this)
+ if (user->GetIOHook() == this && user->GetExt("ssl"))
{
issl_session* session = &sessions[user->GetFd()];
if (session && session->outbuf.size())
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 4beefae10..8243b4f0a 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -798,7 +798,7 @@ class ModuleSSLOpenSSL : public Module
virtual void OnBufferFlushed(User* user)
{
- if (user->GetIOHook() == this)
+ if (user->GetIOHook() == this && user->GetExt("ssl"))
{
issl_session* session = &sessions[user->GetFd()];
if (session && session->outbuf.size())