Commit 6cf9f855 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(toploop) [!USING_RLIMIT_NOFILE]: Fixed a off-by-one error.

parent 1ffe4ac4
/*
* $Id: connections.c,v 0.84 2002/10/27 13:57:25 ceder Exp $
* $Id: connections.c,v 0.85 2002/10/27 23:02:52 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -814,8 +814,11 @@ toploop(void)
restart_kom("toploop(): Got NULL event - shouldn't happen...\n");
#ifndef USING_RLIMIT_NOFILE
if (event->event == ISC_EVENT_LOGIN && event->session->fd > fd_ceiling)
if (event->event == ISC_EVENT_LOGIN
&& event->session->fd >= fd_ceiling)
{
event->event = ISC_EVENT_LOGIN_UNRELOCATED;
}
#endif
switch ( event->event )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment