git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2636
e03df62e-2008-0410-955e-
edbf42e46eb7
{
myhost = host;
this->LinkState = LISTENER;
+ this->ctx = NULL;
}
TreeSocket(std::string host, int port, bool listening, unsigned long maxtime, std::string ServerName)
{
myhost = ServerName;
this->LinkState = CONNECTING;
+ this->ctx = NULL;
}
/* When a listening socket gives us a new file descriptor,
: 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 == "")