From 563ad5acb0fb3d1aee5094989377d8b284d33d92 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 25 Jan 2009 01:09:22 +0000 Subject: Try this as the ssl crash fix git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10998 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_ssl_gnutls.cpp | 2 +- src/modules/extra/m_ssl_openssl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/extra') 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()) -- cgit v1.2.3