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

roles
This commit is contained in:
Vicențiu Ciorbaru 2013-10-17 15:10:57 -07:00 committed by Sergei Golubchik
parent 0d103a6f62
commit 096e7aa1e0

View File

@ -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,