diff options
-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; |