From 5c8c20abe46628e70b05c5fe3944bc264fc3d060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 3 Jan 2018 14:23:04 +0200 Subject: [PATCH] MXS-1539: Also synchronize rate limitations If a synchronous authenticator is used, the rate limitations are also synchronous. --- server/core/service.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/core/service.cc b/server/core/service.cc index 105fa052b..68ff8fc1c 100644 --- a/server/core/service.cc +++ b/server/core/service.cc @@ -1624,6 +1624,9 @@ int service_refresh_users(SERVICE *service) if ((service->capabilities & ACAP_TYPE_ASYNC) == 0) { spinlock_acquire(&service->spin); + // Use only one rate limitation for synchronous authenticators to keep + // rate limitations synchronous as well + self = 0; } /* Check if refresh rate limit has been exceeded */