aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/treesocket1.cpp
diff options
context:
space:
mode:
authorGravatar special2008-03-31 08:54:58 +0000
committerGravatar special2008-03-31 08:54:58 +0000
commitc2f63c607dd27ad20e9e1e5a1f289aea9b9c10da (patch)
treeeba1618cc8b674e125f7da71794730944abc5575 /src/modules/m_spanningtree/treesocket1.cpp
parentRemove the timer (its unsafe on unload) and replace with OnBackgroundTimer. I... (diff)
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
Diffstat (limited to 'src/modules/m_spanningtree/treesocket1.cpp')
-rw-r--r--src/modules/m_spanningtree/treesocket1.cpp5
1 files changed, 3 insertions, 2 deletions
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::deque<std::stri
*/
if (params.size() != 8)
{
- this->WriteLine(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]);