diff --git a/sql/wsrep_check_opts.cc b/sql/wsrep_check_opts.cc index 119813bfa04..818ef843cb5 100644 --- a/sql/wsrep_check_opts.cc +++ b/sql/wsrep_check_opts.cc @@ -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 "