diff options
author | Sergei Golubchik <serg@mariadb.org> | 2023-03-09 11:22:41 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2023-03-09 15:32:32 +0100 |
commit | 4c4939bbf619d7e516131c0b3e5691b1c2d2ff8f (patch) | |
tree | ea59ca44aa754836260d5306830317f4a780aa70 /sql/mysqld.cc | |
parent | fb7d5881535574c0e33fa8338eaed9ecc7bc65c6 (diff) | |
download | mariadb-git-4c4939bbf619d7e516131c0b3e5691b1c2d2ff8f.tar.gz |
MDEV-30818 invalid ssl prevents bootstrap
in bootstrap the server reads stdin and does not listen to network.
it won't use ssl anyway
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index ea3849ed9f9..68f66c37b6c 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -5026,7 +5026,10 @@ static void init_ssl() { sql_print_error("Failed to setup SSL"); sql_print_error("SSL error: %s", sslGetErrString(error)); - unireg_abort(1); + if (!opt_bootstrap) + unireg_abort(1); + opt_use_ssl = 0; + have_ssl= SHOW_OPTION_DISABLED; } if (global_system_variables.log_warnings > 0) { |