summaryrefslogtreecommitdiff
path: root/sql/mysqld.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2023-03-09 11:22:41 +0100
committerSergei Golubchik <serg@mariadb.org>2023-03-09 15:32:32 +0100
commit4c4939bbf619d7e516131c0b3e5691b1c2d2ff8f (patch)
treeea59ca44aa754836260d5306830317f4a780aa70 /sql/mysqld.cc
parentfb7d5881535574c0e33fa8338eaed9ecc7bc65c6 (diff)
downloadmariadb-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.cc5
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)
{