* config.c: default setting for "maxmsglen" is now 10 megabytes, not INT_MAX
authorArt Cancro <ajc@citadel.org>
Fri, 4 Mar 2005 02:18:46 +0000 (02:18 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 4 Mar 2005 02:18:46 +0000 (02:18 +0000)
citadel/ChangeLog
citadel/config.c

index 0a15365901b9af5ada960ad6cb668be75bb26373..d8f22973eee65980713b2224c1fc0910041c8f2d 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 641.19  2005/03/04 02:18:46  ajc
+ * config.c: default setting for "maxmsglen" is now 10 megabytes, not INT_MAX
+
  Revision 641.18  2005/03/03 18:10:27  ajc
  * sysdep.c: change the algorithm for dynamically expanding the redirect
    buffer's size.  Large writes were overflowing it.
@@ -6500,4 +6503,3 @@ 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 0a305151b70bb5a15642b68d1d3d6d2714792818..ed95eab0a5b3b81648a89674bdc10281f6c833ce 100644 (file)
@@ -80,11 +80,12 @@ void get_config(void) {
                exit(1);
        }
 
-        /* Default maximum message length is 'unlimited' (max int)
-         * and the minimum is 8192
+        /* Default maximum message length is 10 megabytes.  This is site
+        * configurable.  Also check to make sure the limit has not been
+        * set below 8192 bytes.
          */
         if (config.c_maxmsglen <= 0)
-                config.c_maxmsglen = INT_MAX;
+                config.c_maxmsglen = 10485760;
         if (config.c_maxmsglen < 8192)
                 config.c_maxmsglen = 8192;