summaryrefslogtreecommitdiffstats
path: root/nts_ke_server.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nts_ke_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nts_ke_server.c b/nts_ke_server.c
index 3fe99db..6d617b4 100644
--- a/nts_ke_server.c
+++ b/nts_ke_server.c
@@ -242,7 +242,7 @@ accept_connection(int listening_fd, int event, void *arg)
SCH_GetLastEventTime(&now, NULL, NULL);
log_index = CLG_LogServiceAccess(CLG_NTSKE, &addr.ip_addr, &now);
- if (log_index >= 0 && CLG_LimitServiceRate(CLG_NTSKE, log_index)) {
+ if (log_index >= 0 && CLG_LimitServiceRate(CLG_NTSKE, log_index) != CLG_PASS) {
DEBUG_LOG("Rejected connection from %s (%s)",
UTI_IPSockAddrToString(&addr), "rate limit");
SCK_CloseSocket(sock_fd);