1
0
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:
Nirbhay Choubey
2015-01-05 17:06:50 -05:00
parent aee3ac4877
commit ed0ea644a0

View File

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