From 52a8a6d2bd1f015103f42eb7f1902f4f470f2318 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 21 Oct 2007 17:59:08 +0000 Subject: Fixed ssl clients on trunk. The problem peavey was having was that before ReadBuffer was char[] now its char*. sizeof() on char[] returns its size in chars, and sizeof on char* returns 4. :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8263 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/userprocess.cpp') diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 68c469aac..3a97a82c7 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -47,7 +47,9 @@ void ProcessUserHandler::Call(User* cu) try { - MOD_RESULT = Server->Config->GetIOHook(cu->GetPort())->OnRawSocketRead(cu->GetFd(),ReadBuffer,sizeof(ReadBuffer),result2); + MOD_RESULT = Server->Config->GetIOHook(cu->GetPort())->OnRawSocketRead(cu->GetFd(),ReadBuffer,Server->Config->NetBufferSize,result2); + + Server->Log(DEBUG,"MOD_RESULT=%d, result2=%d",MOD_RESULT,result2); } catch (CoreException& modexcept) { -- cgit v1.2.3