From e063722fa20266f82e350704211571e27a11b314 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 22 Mar 2007 18:12:03 +0000 Subject: Fix crashes in ipv6 ssl using gnutls, and crashes when linking ssl to non-ssl by mistake, bug #245 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6694 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 ea304be5d..964e488d1 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -317,7 +317,7 @@ class ModuleSSLGnuTLS : public Module if (ISR->Sock->GetFd() > -1) { issl_session* session = &sessions[ISR->Sock->GetFd()]; - if (session) + if (session->sess) { if ((Extensible*)ServerInstance->FindDescriptor(ISR->Sock->GetFd()) == (Extensible*)(ISR->Sock)) { diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 7bb707d2c..7ed29ec37 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -365,7 +365,7 @@ class ModuleSSLOpenSSL : public Module else if (strcmp("IS_ATTACH", request->GetId()) == 0) { issl_session* session = &sessions[ISR->Sock->GetFd()]; - if (session) + if (session->sess) { VerifyCertificate(session, (InspSocket*)ISR->Sock); return "OK"; -- cgit v1.2.3