]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
clientlog: fix check for ratelimit and noclientlog
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 21 May 2020 14:07:52 +0000 (16:07 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 21 May 2020 14:07:52 +0000 (16:07 +0200)
Fixes: 3a2d33d5a37c ("clientlog: refactor client record and API")
clientlog.c

index 4530235c5c9483dd3ad9bcf213c5dcf5d6405811..d19c54e429ffa9912b1adcf29a7f9c242bbd4c7a 100644 (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;