summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-01-15 22:11:05 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2016-01-15 22:11:05 +0100
commitfdeb550ee0012451b04a37bc3f95e63c13adcb27 (patch)
tree65ba33a585ca5c8b231d878a053c546aa0e061c3 /degesch.c
parentc4a18ec8a7c6c65c196ce6735e2fa7e4febf3a06 (diff)
downloadxK-fdeb550ee0012451b04a37bc3f95e63c13adcb27.tar.gz
xK-fdeb550ee0012451b04a37bc3f95e63c13adcb27.tar.xz
xK-fdeb550ee0012451b04a37bc3f95e63c13adcb27.zip
degesch: fix backlog limit
It was effectively infinite.
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c2
1 files changed, 1 insertions, 1 deletions
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);