mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01: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:
parent
072ca71d26
commit
e5410da190
1 changed files with 2 additions and 1 deletions
|
@ -7453,7 +7453,8 @@ ulong get_column_grant(THD *thd, GRANT_INFO *grant,
|
||||||
if (!grant_column)
|
if (!grant_column)
|
||||||
priv|= (grant->privilege | grant_table_role->privs);
|
priv|= (grant->privilege | grant_table_role->privs);
|
||||||
else
|
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);
|
mysql_rwlock_unlock(&LOCK_grant);
|
||||||
|
|
Loading…
Add table
Reference in a new issue