Commit e5410da1 authored by Igor Pashev's avatar Igor Pashev Committed by Vicențiu Ciorbaru

SEGFAULT in get_column_grant()

Due to a typo, the wrong grant_table was used when fetching privileges
for roles.
Signed-off-by: default avatarVicențiu Ciorbaru <vicentiu@mariadb.org>
parent 072ca71d
......@@ -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);
......
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