MXS-1539: Also synchronize rate limitations

If a synchronous authenticator is used, the rate limitations are also
synchronous.
This commit is contained in:
Markus Mäkelä
2018-01-03 14:23:04 +02:00
parent 5fa1036a48
commit 5c8c20abe4

View File

@ -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 */