summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-23 22:11:55 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-23 22:11:55 +0000
commitcd31fc5b9a01e6b975160c46b153c0dd5c3e81dc (patch)
treea1683bb9ca1732415dc9701ff92ad8b359084e6c /src/modules/m_spanningtree.cpp
parentabb9750c490d0ac54fb8b92c5bd140f3d5bb343c (diff)
Attempted fix for munged ctcps during encryption
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2651 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 8a4599565..c53cec248 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1238,6 +1238,8 @@ class TreeSocket : public InspSocket
{
char out[1024];
char result[1024];
+ memset(result,0,1024);
+ memset(out,0,1024);
log(DEBUG,"Original string '%s'",ret.c_str());
/* ERROR + CAPAB is still allowed unencryped */
if ((ret.substr(0,7) != "ERROR :") && (ret.substr(0,6) != "CAPAB "))