diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-06 17:57:27 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-06 17:57:27 +0000 |
commit | bf4720abab7a7929b92238a36cb3b91393f1038c (patch) | |
tree | b349f6cf75725e3725a3bc249ff4aa6b5741e9b0 /src | |
parent | 87c6e2cf20584c745508fff5802deea1c61727a9 (diff) |
Fix to stop failed sockets crashing in destructor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6518 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/inspsocket.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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) |