From bf4720abab7a7929b92238a36cb3b91393f1038c Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 6 Feb 2007 17:57:27 +0000 Subject: Fix to stop failed sockets crashing in destructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6518 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspsocket.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 4aff8f4c5..06e4d1ec1 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -54,6 +54,7 @@ InspSocket::InspSocket(InspIRCd* SI, const std::string &ipaddr, int aport, bool strlcpy(host,ipaddr.c_str(),MAXBUF); this->WaitingForWriteEvent = false; this->IsIOHooked = false; + this->Timeout = NULL; if (listening) { if ((this->fd = OpenTCPSocket(host)) == ERROR) -- cgit v1.2.3