summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-11 07:27:01 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-11 07:27:01 +0000
commit9802f6f93554ef1266ba6cac41a7752d25a35380 (patch)
treebf1e09d263167f50840f92b94cfe5e16309d2323 /src
parent459658d0fc3772ea5d0c0d1a4df00dcf2e0f24af (diff)
Fixed a crash with a malformed server-to-server NICK command, thanks dmb
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6656 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp
index d287d4724..fe56ea1bf 100644
--- a/src/modules/m_spanningtree/treesocket2.cpp
+++ b/src/modules/m_spanningtree/treesocket2.cpp
@@ -1039,7 +1039,7 @@ bool TreeSocket::ProcessLine(std::string &line)
/* Yes, know, this is a mess. Its reasonably fast though as we're
* working with std::string here.
*/
- if ((command == "NICK") && (params.size() > 1))
+ if ((command == "NICK") && (params.size() >= 8))
{
return this->IntroduceClient(prefix,params);
}