From 5dc7242703943964305660e91818b42cbe5bfa5d Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 21 May 2020 16:07:52 +0200 Subject: [PATCH] clientlog: fix check for ratelimit and noclientlog Fixes: 3a2d33d5a37c ("clientlog: refactor client record and API") --- clientlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientlog.c b/clientlog.c index 4530235..d19c54e 100644 --- a/clientlog.c +++ b/clientlog.c @@ -350,7 +350,7 @@ CLG_Initialise(void) active = !CNF_GetNoClientLog(); if (!active) { for (i = 0; i < MAX_SERVICES; i++) { - if (leak_rate[i] == 0) + if (leak_rate[i] != 0) LOG_FATAL("Rate limiting cannot be enabled with noclientlog"); } return;