From fdeb550ee0012451b04a37bc3f95e63c13adcb27 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Fri, 15 Jan 2016 22:11:05 +0100 Subject: degesch: fix backlog limit It was effectively infinite. --- degesch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/degesch.c b/degesch.c index 854ad84..6aab330 100644 --- a/degesch.c +++ b/degesch.c @@ -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); -- cgit v1.2.3-70-g09d2