mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 01:35:06 -05:00
clientlog: fix check for ratelimit and noclientlog
Fixes: 3a2d33d5a3 ("clientlog: refactor client record and API")
This commit is contained in:
@@ -350,7 +350,7 @@ CLG_Initialise(void)
|
|||||||
active = !CNF_GetNoClientLog();
|
active = !CNF_GetNoClientLog();
|
||||||
if (!active) {
|
if (!active) {
|
||||||
for (i = 0; i < MAX_SERVICES; i++) {
|
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");
|
LOG_FATAL("Rate limiting cannot be enabled with noclientlog");
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user