mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
Bug #10181 mysqld.exe crash with an access violation after INSERT INTO mysql.host
sql_acl.cc: Make sure host.db is a valid string pointer before we do our lower_case_table_names comparison
This commit is contained in:
parent
68899decc2
commit
57a2b04007
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ my_bool acl_init(THD *org_thd, bool dont_read_acl_tables)
|
|||
ACL_HOST host;
|
||||
update_hostname(&host.host,get_field(&mem, table->field[0]));
|
||||
host.db= get_field(&mem, table->field[1]);
|
||||
if (lower_case_table_names)
|
||||
if (lower_case_table_names && host.db)
|
||||
{
|
||||
/*
|
||||
We make a temporary copy of the database, force it to lower case,
|
||||
|
|
Loading…
Add table
Reference in a new issue