* control.c: when config.c_maxsessions is unset or negative, set it to 0
authorArt Cancro <ajc@citadel.org>
Tue, 30 Mar 2004 03:11:08 +0000 (03:11 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 30 Mar 2004 03:11:08 +0000 (03:11 +0000)
  instead of setting it to 1 when it is 0 or negative.  The default should
  be unlimited sessions.

citadel/ChangeLog
citadel/control.c

index b3caa6ca5d38f325c60bf4259c671f1afdae4f98..cbbfbe45b1b56af2256d6b5b43522bf7f48c9694 100644 (file)
@@ -1,4 +1,9 @@
  $Log$
+ Revision 620.4  2004/03/30 03:11:07  ajc
+ * control.c: when config.c_maxsessions is unset or negative, set it to 0
+   instead of setting it to 1 when it is 0 or negative.  The default should
+   be unlimited sessions.
+
  Revision 620.3  2004/03/29 16:05:02  ajc
  * begin_critical_section() -- bypass transaction checking for S_FLOORCACHE
    sections, to avoid crashing the db layer
@@ -5646,3 +5651,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
+
index e47838d45ad1326d3666e4eb4821497688e358f9..e0a6dfd5dd24b31ed8dd83eb80b7ce78f926e102 100644 (file)
@@ -279,8 +279,8 @@ void cmd_conf(char *argbuf)
                                break;
                        case 14:
                                config.c_maxsessions = atoi(buf);
-                               if (config.c_maxsessions < 1)
-                                       config.c_maxsessions = 1;
+                               if (config.c_maxsessions < 0)
+                                       config.c_maxsessions = 0;
                                break;
                        case 15:
                                /* placeholder -- field no longer in use */