clientlog: fix check for ratelimit and noclientlog

Fixes: 3a2d33d5a3 ("clientlog: refactor client record and API")
This commit is contained in:
Miroslav Lichvar 2020-05-21 16:07:52 +02:00
parent 11bffa0d55
commit 5dc7242703

View file

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