diff --git a/os/connection.c b/os/connection.c index d975f87d2..135dd2cda 100644 --- a/os/connection.c +++ b/os/connection.c @@ -1008,7 +1008,8 @@ CheckConnections(void) FD_SET(curclient, &tmask); r = Select (curclient + 1, &tmask, NULL, NULL, ¬ime); if (r < 0) - CloseDownClient(clients[ConnectionTranslation[curclient]]); + if (ConnectionTranslation[curclient] > 0) + CloseDownClient(clients[ConnectionTranslation[curclient]]); mask &= ~((fd_mask)1 << curoff); } }