From 9295960ea1b6821fc8c03f4cc672f0e49215d750 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 22 Jan 2006 13:09:01 +0000 Subject: Tweaks for openssl compatibility git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2825 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/userprocess.cpp') diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 41a860d9b..c7e7aa545 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -92,7 +92,7 @@ void ProcessUser(userrec* cu) log(DEBUG,"Data result returned by module: %d",MOD_RESULT); if (MOD_RESULT < 0) { - result = EAGAIN; + result = -EAGAIN; } else { @@ -104,7 +104,7 @@ void ProcessUser(userrec* cu) result = cu->ReadData(data, 65535); } log(DEBUG,"Read result: %d",result); - if (result) + if ((result) && (result != -EAGAIN)) { ServerInstance->stats->statsRecv += result; // perform a check on the raw buffer as an array (not a string!) to remove @@ -247,7 +247,7 @@ void ProcessUser(userrec* cu) } } // result EAGAIN means nothing read - else if (result == EAGAIN) + else if ((result == EAGAIN) || (result == -EAGAIN)) { } else if (result == 0) -- cgit v1.3.1-10-gc9f91