degesch: fix backlog limit

It was effectively infinite.
This commit is contained in:
Přemysl Eric Janouch 2016-01-15 22:11:05 +01:00
parent c4a18ec8a7
commit fdeb550ee0
1 changed files with 1 additions and 1 deletions

View File

@ -3013,7 +3013,7 @@ static void
on_config_backlog_limit_change (struct config_item *item)
{
struct app_context *ctx = item->user_data;
ctx->backlog_limit = MAX (item->value.integer, INT_MAX);
ctx->backlog_limit = MIN (item->value.integer, INT_MAX);
LIST_FOR_EACH (struct buffer, iter, ctx->buffers)
buffer_pop_excess_lines (ctx, iter);