diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-22 13:25:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-22 13:25:03 +0000 |
commit | 11e0cbf4dd4356c2791ab04fcec76b58bd44567e (patch) | |
tree | 1c2aa0d53f9a0037ec2a30416769db8d0ab3d27f | |
parent | 5b889dc2478831e40767a71a6c8970e5e03938f9 (diff) |
Fixed encryption being set on a connection that has only just begun!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2636 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_spanningtree.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 57872b65d..8a4599565 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -552,6 +552,7 @@ class TreeSocket : public InspSocket { myhost = host; this->LinkState = LISTENER; + this->ctx = NULL; } TreeSocket(std::string host, int port, bool listening, unsigned long maxtime, std::string ServerName) @@ -559,6 +560,7 @@ class TreeSocket : public InspSocket { myhost = ServerName; this->LinkState = CONNECTING; + this->ctx = NULL; } /* When a listening socket gives us a new file descriptor, @@ -569,9 +571,16 @@ class TreeSocket : public InspSocket : InspSocket(newfd, ip) { this->LinkState = WAIT_AUTH_1; + this->ctx = NULL; this->SendCapabilities(); } + ~TreeSocket() + { + if (ctx) + delete ctx; + } + void InitAES(std::string key,std::string SName) { if (key == "") |