summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/userprocess.cpp2
-rw-r--r--src/users.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index b27844fb6..3b9e717df 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -174,7 +174,7 @@ void InspIRCd::ProcessUser(userrec* cu)
if ((result == -1) && (errno != EAGAIN) && (errno != EINTR))
{
- cu->SetWriteError(strerror(errno));
+ cu->SetWriteError(errno ? strerror(errno) : "EOF from client");
return;
}
}
diff --git a/src/users.cpp b/src/users.cpp
index 7da7d6b09..8b9227083 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -741,7 +741,7 @@ void userrec::FlushWriteBuf()
{
/* Fatal error, set write error and bail
*/
- this->SetWriteError(strerror(errno));
+ this->SetWriteError(errno ? strerror(errno) : "EOF from client");
return;
}
}