mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
SEGFAULT in get_column_grant()
Due to a typo, the wrong grant_table was used when fetching privileges for roles. Signed-off-by: Vicențiu Ciorbaru <vicentiu@mariadb.org>
This commit is contained in:
committed by
Vicențiu Ciorbaru
parent
072ca71d26
commit
e5410da190
@ -7453,7 +7453,8 @@ ulong get_column_grant(THD *thd, GRANT_INFO *grant,
|
||||
if (!grant_column)
|
||||
priv|= (grant->privilege | grant_table_role->privs);
|
||||
else
|
||||
priv|= (grant->privilege | grant_table->privs | grant_column->rights);
|
||||
priv|= (grant->privilege | grant_table_role->privs |
|
||||
grant_column->rights);
|
||||
}
|
||||
}
|
||||
mysql_rwlock_unlock(&LOCK_grant);
|
||||
|
Reference in New Issue
Block a user