summaryrefslogtreecommitdiff
path: root/sql/wsrep_mysqld.cc
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2020-04-08 18:09:28 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2020-04-08 18:09:28 +0300
commitc7ab676192dcd953a0860a9d021ff49f1c0dfbca (patch)
tree6710ccbf68c434f68f2ef56986dad9d5812ae1b6 /sql/wsrep_mysqld.cc
parent6cf8f05fd9deb900a78898576b85753e09feddaa (diff)
downloadmariadb-git-c7ab676192dcd953a0860a9d021ff49f1c0dfbca.tar.gz
MDEV-22075 : Server crashes in wsrep_should_replicate_ddl_iterate upon CREATE VIEW
Fixed incorrect pointer reference when table is not available.
Diffstat (limited to 'sql/wsrep_mysqld.cc')
-rw-r--r--sql/wsrep_mysqld.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc
index 99e8f0a52ec..6c2f20081a7 100644
--- a/sql/wsrep_mysqld.cc
+++ b/sql/wsrep_mysqld.cc
@@ -1744,7 +1744,8 @@ bool wsrep_should_replicate_ddl_iterate(THD* thd, const TABLE_LIST* table_list)
{
for (const TABLE_LIST* it= table_list; it; it= it->next_global)
{
- if (!wsrep_should_replicate_ddl(thd, it->table->s->db_type()->db_type))
+ if (it->table &&
+ !wsrep_should_replicate_ddl(thd, it->table->s->db_type()->db_type))
return false;
}
}