From cd31fc5b9a01e6b975160c46b153c0dd5c3e81dc Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 23 Dec 2005 22:11:55 +0000 Subject: Attempted fix for munged ctcps during encryption git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2651 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 ")) -- cgit v1.2.3