From c9d94ba9cd653574ce4aba06d13b130f7a175480 Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 8 Oct 2008 09:33:46 +0000 Subject: Fix crash caused by me being retarded. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10630 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/utils.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree') 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()); -- cgit v1.2.3