diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-06-17 21:20:43 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2022-07-28 17:18:40 +0200 |
commit | e1caa4bd5e8b4645944b85d4b603bf9fc9ef6ca4 (patch) | |
tree | db8500139e4388199e47bfb1d981124cff48750b /client/mysql.cc | |
parent | ce9385b73cd8f12186ee683ad7f1fc284de11ffe (diff) | |
download | mariadb-git-e1caa4bd5e8b4645944b85d4b603bf9fc9ef6ca4.tar.gz |
don't use ssl for windows named pipes - it doesn't work
Diffstat (limited to 'client/mysql.cc')
-rw-r--r-- | client/mysql.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index 8e6f1938fd8..4099490356b 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -1491,7 +1491,7 @@ static bool do_connect(MYSQL *mysql, const char *host, const char *user, if (opt_secure_auth) mysql_options(mysql, MYSQL_SECURE_AUTH, (char *) &opt_secure_auth); #if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY) - if (opt_use_ssl) + if (opt_use_ssl && opt_protocol <= MYSQL_PROTOCOL_SOCKET) { mysql_ssl_set(mysql, opt_ssl_key, opt_ssl_cert, opt_ssl_ca, opt_ssl_capath, opt_ssl_cipher); |