diff options
| author | 2006-02-14 20:06:56 +0000 | |
|---|---|---|
| committer | 2006-02-14 20:06:56 +0000 | |
| commit | 642b21c7546728f3a2e1505ee44f2e67fea7b05a (patch) | |
| tree | 00e3a255e274d58273b953c54e9134baa2a3c593 /src/modules/m_spanningtree.cpp | |
| parent | gogo, 10 commits in 10.. (diff) | |
| download | inspircd++-642b21c7546728f3a2e1505ee44f2e67fea7b05a.tar.gz inspircd++-642b21c7546728f3a2e1505ee44f2e67fea7b05a.tar.bz2 inspircd++-642b21c7546728f3a2e1505ee44f2e67fea7b05a.zip | |
Error checking for out of range buffer reads (this shouldnt happen, read is being passed a max buffer size of 65536 but returning 6 million?! We check for it now.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3196 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
| -rw-r--r-- | src/modules/m_spanningtree.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 0514723a0..88021374b 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1414,17 +1414,11 @@ class TreeSocket : public InspSocket } /* Handle ERROR command */ - bool Error(std::deque<std::string> params) + bool Error(std::deque<std::string> ¶ms) { if (params.size() < 1) return false; - std::string Errmsg = params[0]; - std::string SName = myhost; - if (InboundServerName != "") - { - SName = InboundServerName; - } - Srv->SendOpers("*** ERROR from "+SName+": "+Errmsg); + WriteOpers("*** ERROR from %s: %s",(InboundServerName != "" ? InboundServerName.c_str() : myhost.c_str()),params[0].c_str()); /* we will return false to cause the socket to close. */ return false; |
