1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fixed compilation problems when HAVE_OPENSSL is not defined

This commit is contained in:
unknown
2001-09-01 23:29:58 +08:00
parent 39fdbbbb81
commit 3c951b6d99
4 changed files with 20 additions and 20 deletions

View File

@@ -377,6 +377,9 @@ sig_handler mysql_end(int sig)
{
if (connected)
mysql_close(&mysql);
else
mysql_ssl_clear(&mysql); /* SSL data structres should be freed
even if connection was not made */
#ifdef HAVE_READLINE
if (!status.batch && !quick && !opt_html && !opt_xml)
{
@@ -2204,6 +2207,9 @@ sql_real_connect(char *host,char *database,char *user,char *password,
mysql_close(&mysql);
connected= 0;
}
else
mysql_ssl_clear(&mysql); /* SSL data structres should be freed
even if connection was not made */
mysql_init(&mysql);
if (opt_connect_timeout)
{