Commit f6732774 authored by Jan Lindström's avatar Jan Lindström

MDEV-25586 : SIGSEGV in my_strcasecmp_utf8mb3

Fixed NULL pointer reference to db.str
parent 803fa4b3
......@@ -279,7 +279,8 @@ TABLE_CATEGORY get_table_category(const LEX_CSTRING *db,
DBUG_ASSERT(name != NULL);
#ifdef WITH_WSREP
if (my_strcasecmp(system_charset_info, db->str, "mysql") == 0 &&
if (db->str &&
my_strcasecmp(system_charset_info, db->str, "mysql") == 0 &&
my_strcasecmp(system_charset_info, name->str, "wsrep_streaming_log") == 0)
{
return TABLE_CATEGORY_INFORMATION;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment