diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-22 13:09:01 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-22 13:09:01 +0000 |
commit | 9295960ea1b6821fc8c03f4cc672f0e49215d750 (patch) | |
tree | 37d692a3cb2a50bee237e5bf983cc6568e173787 /src | |
parent | 65d3f80df5b672bffb00355892bf6454b488caf9 (diff) |
Tweaks for openssl compatibility
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2825 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/userprocess.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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) |