mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-7412: Segfault during start with mysqldump SST
Added a validity check for my_bind_addr_str before its value is accessed.
This commit is contained in:
@ -47,8 +47,9 @@ int wsrep_check_opts()
|
||||
|
||||
if (!strcasecmp(wsrep_sst_method, "mysqldump"))
|
||||
{
|
||||
if (!strcasecmp(my_bind_addr_str, "127.0.0.1") ||
|
||||
!strcasecmp(my_bind_addr_str, "localhost"))
|
||||
if (my_bind_addr_str &&
|
||||
(!strcasecmp(my_bind_addr_str, "127.0.0.1") ||
|
||||
!strcasecmp(my_bind_addr_str, "localhost")))
|
||||
{
|
||||
WSREP_ERROR("wsrep_sst_method is set to 'mysqldump' yet "
|
||||
"mysqld bind_address is set to '%s', which makes it "
|
||||
|
Reference in New Issue
Block a user