From: Art Cancro Date: Fri, 4 Mar 2005 02:18:46 +0000 (+0000) Subject: * config.c: default setting for "maxmsglen" is now 10 megabytes, not INT_MAX X-Git-Tag: v7.86~4994 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=b3c074b02af141dcba1d8b731a06fe9690dfa8b1 * config.c: default setting for "maxmsglen" is now 10 megabytes, not INT_MAX --- diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 0a1536590..d8f22973e 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -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 Fri Jul 10 1998 Art Cancro * Initial CVS import - diff --git a/citadel/config.c b/citadel/config.c index 0a305151b..ed95eab0a 100644 --- a/citadel/config.c +++ b/citadel/config.c @@ -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;