From c2f63c607dd27ad20e9e1e5a1f289aea9b9c10da Mon Sep 17 00:00:00 2001 From: special Date: Mon, 31 Mar 2008 08:54:58 +0000 Subject: Patch by brain; fix crash when no parameters are given when introducing a remote client git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@9238 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket1.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules/m_spanningtree/treesocket1.cpp') diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp index fc42d03d0..3d0db2bee 100644 --- a/src/modules/m_spanningtree/treesocket1.cpp +++ b/src/modules/m_spanningtree/treesocket1.cpp @@ -919,8 +919,9 @@ bool TreeSocket::IntroduceClient(const std::string &source, std::dequeWriteLine(std::string(":")+this->Instance->Config->ServerName+" KILL "+params[1]+" :Invalid client introduction ("+params[1]+"?)"); - return true; + if (params.size() >= 2) + this->WriteLine(std::string(":")+this->Instance->Config->ServerName+" KILL "+params[1]+" :Invalid client introduction ("+params[1]+"?)"); + return true; } time_t age = ConvToInt(params[0]); -- cgit v1.3.1-10-gc9f91