Commit 096e7aa1 authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru Committed by Sergei Golubchik

Fix bug with inserting _pointers_ to ACL_USER in the DYNAMIC_ARRAY of granted

roles
parent 0d103a6f
......@@ -2067,8 +2067,8 @@ my_bool add_role_user_mapping(ROLE_GRANT_PAIR *mapping)
return 1;
}
push_dynamic(&user->role_grants, (uchar*) role);
push_dynamic(&role->role_grants, (uchar*) user);
push_dynamic(&user->role_grants, (uchar*) &role);
push_dynamic(&role->role_grants, (uchar*) &user);
DBUG_PRINT("info", ("Found user %s@%s having role granted %s@%s\n",
user->user.str, user->host.hostname,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment