summaryrefslogtreecommitdiff
path: root/sql/sql_acl.cc
diff options
context:
space:
mode:
authorreggie@mdk10.(none) <>2005-05-26 14:02:18 -0500
committerreggie@mdk10.(none) <>2005-05-26 14:02:18 -0500
commit57a2b04007c994de9fd47ea3ce5e5df9633023d1 (patch)
treeb9ef0a80c4026892ee7bab09f39b56571dffee54 /sql/sql_acl.cc
parent68899decc295dbc81b9cab15f4868ed99082f921 (diff)
downloadmariadb-git-57a2b04007c994de9fd47ea3ce5e5df9633023d1.tar.gz
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
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r--sql/sql_acl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index 02da05d195f..ae360fab019 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -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,