summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 1c3d7a965..fc60974a3 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -334,7 +334,7 @@ void DoBackgroundUserStuff(time_t TIME)
{
cfd = curr->fd;
- if ((cfd > 0) && (cfd < MAX_DESCRIPTORS) && (fd_ref_table[cfd] == curr) && (curr))
+ if ((cfd > -1) && (cfd < MAX_DESCRIPTORS) && (fd_ref_table[cfd] == curr) && (curr))
{
/*
* registration timeout -- didnt send USER/NICK/HOST
@@ -401,7 +401,7 @@ void DoBackgroundUserStuff(time_t TIME)
*/
/* Check again that theyre still here (something above may have changed that) */
- if ((cfd > 0) && (cfd < MAX_DESCRIPTORS) && (fd_ref_table[cfd] == curr) && (curr))
+ if ((cfd > -1) && (cfd < MAX_DESCRIPTORS) && (fd_ref_table[cfd] == curr) && (curr))
{
curr->FlushWriteBuf();
if (*curr->GetWriteError())