diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-01-05 17:06:50 -0500 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-01-05 17:06:50 -0500 |
commit | ed0ea644a0770194b6c8a61f9106e44f711dedf6 (patch) | |
tree | 70d670bb9622b1daef6d459b760cd69da066f43a /sql/wsrep_check_opts.cc | |
parent | aee3ac48775c1d88fbdd75c24d82e8f5570e65ff (diff) | |
download | mariadb-git-ed0ea644a0770194b6c8a61f9106e44f711dedf6.tar.gz |
MDEV-7412: Segfault during start with mysqldump SST
Added a validity check for my_bind_addr_str before its value
is accessed.
Diffstat (limited to 'sql/wsrep_check_opts.cc')
-rw-r--r-- | sql/wsrep_check_opts.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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 " |