summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2016-12-07 14:42:08 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2016-12-07 14:42:08 +0400
commit1d702ff07c53770f45086c514f34bf6ec4e8b299 (patch)
tree6f5ca2b53c5504974bf443797f44bc6995d128c8 /sql
parentd67ef7a2fb3b52b3f61ce71dfe23cf4d610afc3c (diff)
downloadmariadb-git-1d702ff07c53770f45086c514f34bf6ec4e8b299.tar.gz
MDEV-8329 MariaDB crashes when replicate_wild_ignore_table is set to NULL.
Rpl_filter::parse_filter_rule() made NULL-safe.
Diffstat (limited to 'sql')
-rw-r--r--sql/rpl_filter.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/rpl_filter.cc b/sql/rpl_filter.cc
index 9103cad337d..6205c253ffc 100644
--- a/sql/rpl_filter.cc
+++ b/sql/rpl_filter.cc
@@ -279,6 +279,9 @@ Rpl_filter::parse_filter_rule(const char* spec, Add_filter add)
int status= 0;
char *arg, *ptr, *pstr;
+ if (!spec)
+ return false;
+
if (! (ptr= my_strdup(spec, MYF(MY_WME))))
return true;