1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-8329 MariaDB crashes when replicate_wild_ignore_table is set to NULL.

Rpl_filter::parse_filter_rule() made NULL-safe.
This commit is contained in:
Alexey Botchkov
2016-12-07 14:42:08 +04:00
parent d67ef7a2fb
commit 1d702ff07c
13 changed files with 45 additions and 0 deletions

View File

@ -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;