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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user