Commit ed0ea644 authored by Nirbhay Choubey's avatar Nirbhay Choubey

MDEV-7412: Segfault during start with mysqldump SST

Added a validity check for my_bind_addr_str before its value
is accessed.
parent aee3ac48
......@@ -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 "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment