diff options
| author | Alexander Barton <alex@barton.de> | 2002-12-18 02:52:51 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2002-12-18 02:52:51 +0000 |
| commit | 3e4f58e4164e4ebb18e3c4df11200c6e72a107e6 (patch) | |
| tree | 0c8fc9694c404f02925c2d92f018e7257c31cbde /src | |
| parent | b7be46ed8a152f85dd3229443bbc3bfe3018f9b0 (diff) | |
| download | ngircd-3e4f58e4164e4ebb18e3c4df11200c6e72a107e6.tar.gz ngircd-3e4f58e4164e4ebb18e3c4df11200c6e72a107e6.zip | |
- If Conf_MaxConnections is "ulimited" (<1) it is limited to FD_SETSIZE.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index d0f33934..942dbe21 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: conf.c,v 1.45 2002/12/18 02:47:12 alex Exp $"; +static char UNUSED id[] = "$Id: conf.c,v 1.46 2002/12/18 02:52:51 alex Exp $"; #include "imp.h" #include <assert.h> @@ -664,7 +664,7 @@ Validate_Config( BOOLEAN Configtest ) Config_Error( LOG_WARNING, "No administrative information configured but required by RFC!" ); } #ifdef FD_SETSIZE - if( Conf_MaxConnections > (LONG)FD_SETSIZE ) + if(( Conf_MaxConnections > (LONG)FD_SETSIZE ) || ( Conf_MaxConnections < 1 )) { Conf_MaxConnections = (LONG)FD_SETSIZE; Config_Error( LOG_ERR, "Setting MaxConnections to %ld, select() can't handle more file descriptors!", Conf_MaxConnections ); |