summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-26 10:50:53 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-26 10:50:53 +0000
commit398e82a1142e8d361b206b4a2b15e3f6325a51b2 (patch)
treedde4710483da82d4e7982049a5d56fa8b3658495 /src/modules/extra
parent224b040f43f541a20daa3c96ab6f552e2a7f8acc (diff)
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
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp5
1 files changed, 5 insertions, 0 deletions
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<std::string> &por
class issl_session : public classbase
{
public:
+ issl_session()
+ {
+ sess = NULL;
+ }
+
gnutls_session_t sess;
issl_status status;
std::string outbuf;