Fix injection of service user

The parameters that were given to the user creation function were in the
wrong order.
This commit is contained in:
Markus Mäkelä
2017-02-03 08:52:52 +02:00
parent 2dd79e2e0c
commit f225b29756

View File

@ -500,8 +500,8 @@ static bool add_service_user(SERV_LISTENER *port)
if (newpw)
{
MYSQL_AUTH *inst = (MYSQL_AUTH*)port->auth_instance;
add_mysql_user(inst->handle, user, "%", newpw, "Y", "");
add_mysql_user(inst->handle, user, "localhost", newpw, "Y", "");
add_mysql_user(inst->handle, user, "%", "", "Y", newpw);
add_mysql_user(inst->handle, user, "localhost", "", "Y", newpw);
MXS_FREE(newpw);
rval = true;
}