fix zero MaxSize override in Channels

REFMAIL: CA+Tk8fzb9i9LrC_k4G978c5XR5urNz_s0fpOn_-6EsdrBnEzSQ@mail.gmail.com
This commit is contained in:
Oswald Buddenhagen 2014-03-19 10:09:20 +01:00
parent 19d86d2aa9
commit bee7ceb0fb

View File

@ -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;
}