From a3caa8ccd9a48064e7483100ae2b355c52421529 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 19 Jul 2007 22:08:21 +0000 Subject: Fix for bug #326, 'no error' quit can no longer theoretically occur because all errno == 0 are weeded out with a shorthand if() on calling userrec::SetWriteError, before, only one of three occurances was. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7478 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/userprocess.cpp') 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; } } -- cgit v1.2.3