From b49b8a80ad3bd91363bb4c06ae4aa2ae2bb3986a Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 30 Mar 2004 03:11:08 +0000 Subject: [PATCH] * 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. --- citadel/ChangeLog | 6 ++++++ citadel/control.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/citadel/ChangeLog b/citadel/ChangeLog index b3caa6ca5..cbbfbe45b 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -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 Fri Jul 10 1998 Art Cancro * Initial CVS import + diff --git a/citadel/control.c b/citadel/control.c index e47838d45..e0a6dfd5d 100644 --- a/citadel/control.c +++ b/citadel/control.c @@ -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 */ -- 2.39.2