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:
@ -500,8 +500,8 @@ static bool add_service_user(SERV_LISTENER *port)
|
|||||||
if (newpw)
|
if (newpw)
|
||||||
{
|
{
|
||||||
MYSQL_AUTH *inst = (MYSQL_AUTH*)port->auth_instance;
|
MYSQL_AUTH *inst = (MYSQL_AUTH*)port->auth_instance;
|
||||||
add_mysql_user(inst->handle, user, "%", newpw, "Y", "");
|
add_mysql_user(inst->handle, user, "%", "", "Y", newpw);
|
||||||
add_mysql_user(inst->handle, user, "localhost", newpw, "Y", "");
|
add_mysql_user(inst->handle, user, "localhost", "", "Y", newpw);
|
||||||
MXS_FREE(newpw);
|
MXS_FREE(newpw);
|
||||||
rval = true;
|
rval = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user