]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conf.c
- Validate_Config(): removed unused variable "i".
[ngircd-alex.git] / src / ngircd / conf.c
index d0f33934c8ea8b0f52337d226c7f453f3f60d59c..65e51a96b92a880fb2c7fdcf4c55f31230957603 100644 (file)
@@ -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.47 2002/12/18 02:53:36 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -632,8 +632,6 @@ Validate_Config( BOOLEAN Configtest )
 {
        /* Validate configuration settings. */
        
-       INT i;
-       
        if( ! Conf_ServerName[0] )
        {
                /* No server name configured! */
@@ -664,7 +662,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 );