Skip to content

Commit e5410da

Browse files
ip1981cvicentiu
authored andcommitted
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>
1 parent 072ca71 commit e5410da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/sql_acl.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7453,7 +7453,8 @@ ulong get_column_grant(THD *thd, GRANT_INFO *grant,
74537453
if (!grant_column)
74547454
priv|= (grant->privilege | grant_table_role->privs);
74557455
else
7456-
priv|= (grant->privilege | grant_table->privs | grant_column->rights);
7456+
priv|= (grant->privilege | grant_table_role->privs |
7457+
grant_column->rights);
74577458
}
74587459
}
74597460
mysql_rwlock_unlock(&LOCK_grant);

0 commit comments

Comments
 (0)