From bee7ceb0fb3d553a178e66886298a8a3503e4c33 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 19 Mar 2014 10:09:20 +0100 Subject: [PATCH] fix zero MaxSize override in Channels REFMAIL: CA+Tk8fzb9i9LrC_k4G978c5XR5urNz_s0fpOn_-6EsdrBnEzSQ@mail.gmail.com --- src/config.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 7743615..c8d9d61 100644 --- a/src/config.c +++ b/src/config.c @@ -422,8 +422,11 @@ load_config( const char *where, int pseudo ) } else if (merge_ops( cops, channel->ops )) cfile.err = 1; else { - if (max_size >= 0) + if (max_size >= 0) { + if (!max_size) + max_size = INT_MAX; channel->stores[M]->max_size = channel->stores[S]->max_size = max_size; + } *channelapp = channel; channelapp = &channel->next; }