diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-26 10:50:53 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-26 10:50:53 +0000 |
commit | 398e82a1142e8d361b206b4a2b15e3f6325a51b2 (patch) | |
tree | dde4710483da82d4e7982049a5d56fa8b3658495 | |
parent | 224b040f43f541a20daa3c96ab6f552e2a7f8acc (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
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 5 |
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; |