diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-10-08 09:33:46 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-10-08 09:33:46 +0000 |
commit | c9d94ba9cd653574ce4aba06d13b130f7a175480 (patch) | |
tree | a5bd5e7e68f587358c005a00add69e7a382a79fb /src/modules | |
parent | a7339c34f150a755a15e157ab06457ffc85c0965 (diff) |
Fix crash caused by me being retarded.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10630 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree/utils.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index e657dd5fb..c6c9ae700 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -54,7 +54,10 @@ void ServerSocketListener::OnAcceptReady(const std::string &ipconnectedto, int n } } - this->GetIOHook()->OnRawSocketAccept(newsock, incomingip.c_str(), this->bind_port); + if (this->GetIOHook()) + { + this->GetIOHook()->OnRawSocketAccept(newsock, incomingip.c_str(), this->bind_port); + } /* we don't need a pointer to this, creating it stores it in the necessary places */ new TreeSocket(this->Utils, this->ServerInstance, newsock, ip, this->GetIOHook()); |