From 8c2f6aafccad20c0c4dd2d43c70dee0a5a35f7a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 19 Sep 2018 11:13:31 +0300 Subject: [PATCH] MXS-2060: Load users from only valid servers Users should only be loaded from a server if it is running and not in maintenance. --- server/modules/authenticator/MySQLAuth/dbusers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/modules/authenticator/MySQLAuth/dbusers.c b/server/modules/authenticator/MySQLAuth/dbusers.c index 3c04c3839..06e62ad05 100644 --- a/server/modules/authenticator/MySQLAuth/dbusers.c +++ b/server/modules/authenticator/MySQLAuth/dbusers.c @@ -990,7 +990,8 @@ static int get_users(SERV_LISTENER *listener, bool skip_local) for (server = service->dbref; !service->svc_do_shutdown && server; server = server->next) { if (!SERVER_REF_IS_ACTIVE(server) || !SERVER_IS_ACTIVE(server->server) || - (skip_local && server_is_mxs_service(server->server))) + (skip_local && server_is_mxs_service(server->server)) || + !SERVER_IS_RUNNING(server->server)) { continue; }