diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-02 17:18:25 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-02 17:18:25 +0000 |
commit | fb5a23fadcdf947e354657d19b037bb22c3057e9 (patch) | |
tree | 89d6825e41a778f32563058b9bff9f2e3a58d7c5 /src/modules/m_spanningtree | |
parent | a94af5f308268cc76fb8c3b59b6443817ba1a8d8 (diff) |
Check for empty prefixes, and close server connections attempting to use them
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8788 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index da8af22a0..7c2df1e2a 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -1070,9 +1070,17 @@ bool TreeSocket::ProcessLine(std::string &line) { prefix = params[0].substr(1); params.pop_front(); + + if (prefix.empty()) + { + this->SendError("BUG (??) Empty prefix recieved."); + return false; + } } + command = params[0].c_str(); params.pop_front(); + switch (this->LinkState) { TreeServer* Node; |