diff options
-rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index 09c23acc0..17170fdb9 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -2043,7 +2043,7 @@ void userrec::HandleEvent(EventType et, int errornum) this->FlushWriteBuf(); break; case EVENT_ERROR: - this->SetWriteError(strerror(errornum)); + this->SetWriteError(errnum ? strerror(errornum) : "EOF from client"); break; } } |