summaryrefslogtreecommitdiff
path: root/client/mysqladmin.cc
diff options
context:
space:
mode:
authorRamil Kalimullin <ramil.kalimullin@oracle.com>2016-02-19 23:31:10 +0400
committerRamil Kalimullin <ramil.kalimullin@oracle.com>2016-02-19 23:31:10 +0400
commitb3e9211e48a3fb586e88b0270a175d2348935424 (patch)
tree6289051e87d89f272a9392d749ce580a83eb2743 /client/mysqladmin.cc
parentd9c541cb1be5b239787833d9d499067d44ea44d3 (diff)
downloadmariadb-git-b3e9211e48a3fb586e88b0270a175d2348935424.tar.gz
WL#9072: Backport WL#8785 to 5.5
Diffstat (limited to 'client/mysqladmin.cc')
-rw-r--r--client/mysqladmin.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/mysqladmin.cc b/client/mysqladmin.cc
index e8bb4a1a27c..f0ae2c12137 100644
--- a/client/mysqladmin.cc
+++ b/client/mysqladmin.cc
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -518,8 +518,9 @@ static my_bool sql_connect(MYSQL *mysql, uint wait)
for (;;)
{
- if (mysql_real_connect(mysql,host,user,opt_password,NullS,tcp_port,
- unix_port, CLIENT_REMEMBER_OPTIONS))
+ if (mysql_connect_ssl_check(mysql, host, user, opt_password, NullS,
+ tcp_port, unix_port,
+ CLIENT_REMEMBER_OPTIONS, opt_ssl_required))
{
mysql->reconnect= 1;
if (info)