summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-03 21:57:18 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-03 21:57:18 +0000
commitc7c29d03e204473f82cdf2f33f8d24b83b61ed63 (patch)
tree58ce15d95c6f394c3762b61d7093550b0f629e9b /src/modules
parentced8a722ae62567a708e82f0b72649a5c9399c40 (diff)
Split servers if they try to send infinite garbage without a newline
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12369 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree/treesocket1.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp
index 4a1a27ba0..23d1e46cd 100644
--- a/src/modules/m_spanningtree/treesocket1.cpp
+++ b/src/modules/m_spanningtree/treesocket1.cpp
@@ -233,5 +233,7 @@ void TreeSocket::OnDataReady()
if (!getError().empty())
break;
}
+ if (getError().empty() && recvq.length() > 4096)
+ SendError("RecvQ overrun (line too long)");
Utils->Creator->loopCall = false;
}