From 398e82a1142e8d361b206b4a2b15e3f6325a51b2 Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 26 Sep 2008 10:50:53 +0000 Subject: Initialise SSL session pointer to NULL to prevent a potentially unsafe comparison, thanks Macgyver. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10602 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_ssl_gnutls.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index debad4f89..ebf46d595 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -55,6 +55,11 @@ bool isin(const std::string &host, int port, const std::vector &por class issl_session : public classbase { public: + issl_session() + { + sess = NULL; + } + gnutls_session_t sess; issl_status status; std::string outbuf; -- cgit v1.2.3