mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +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)
|
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);
|
||||||
|
Reference in New Issue
Block a user