From 9802f6f93554ef1266ba6cac41a7752d25a35380 Mon Sep 17 00:00:00 2001 From: special Date: Sun, 11 Mar 2007 07:27:01 +0000 Subject: 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 --- src/modules/m_spanningtree/treesocket2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree/treesocket2.cpp') 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); } -- cgit v1.2.3