Commit 8bc712e4 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-6671 mysql_server_end breaks OpenSSL

parent 3212aaa9
...@@ -75,6 +75,7 @@ typedef int my_socket; ...@@ -75,6 +75,7 @@ typedef int my_socket;
#include "my_list.h" /* for LISTs used in 'MYSQL' and 'MYSQL_STMT' */ #include "my_list.h" /* for LISTs used in 'MYSQL' and 'MYSQL_STMT' */
extern unsigned int mariadb_deinitialize_ssl;
extern unsigned int mysql_port; extern unsigned int mysql_port;
extern char *mysql_unix_port; extern char *mysql_unix_port;
......
...@@ -168,6 +168,7 @@ extern LIST *list_reverse(LIST *root); ...@@ -168,6 +168,7 @@ extern LIST *list_reverse(LIST *root);
extern void list_free(LIST *root,unsigned int free_data); extern void list_free(LIST *root,unsigned int free_data);
extern unsigned int list_length(LIST *); extern unsigned int list_length(LIST *);
extern int list_walk(LIST *,list_walk_action action,unsigned char * argument); extern int list_walk(LIST *,list_walk_action action,unsigned char * argument);
extern unsigned int mariadb_deinitialize_ssl;
extern unsigned int mysql_port; extern unsigned int mysql_port;
extern char *mysql_unix_port; extern char *mysql_unix_port;
typedef struct st_mysql_field { typedef struct st_mysql_field {
......
...@@ -236,6 +236,8 @@ dynamic_column_exists ...@@ -236,6 +236,8 @@ dynamic_column_exists
dynamic_column_list dynamic_column_list
dynamic_column_get dynamic_column_get
dynamic_column_prepare_decimal dynamic_column_prepare_decimal
#
mariadb_deinitialize_ssl
) )
SET(CLIENT_API_FUNCTIONS SET(CLIENT_API_FUNCTIONS
......
...@@ -205,7 +205,8 @@ void STDCALL mysql_server_end() ...@@ -205,7 +205,8 @@ void STDCALL mysql_server_end()
mysql_client_plugin_deinit(); mysql_client_plugin_deinit();
finish_client_errs(); finish_client_errs();
vio_end(); if (mariadb_deinitialize_ssl)
vio_end();
#ifdef EMBEDDED_LIBRARY #ifdef EMBEDDED_LIBRARY
end_embedded_server(); end_embedded_server();
#endif #endif
......
...@@ -118,6 +118,7 @@ my_bool net_flush(NET *net); ...@@ -118,6 +118,7 @@ my_bool net_flush(NET *net);
#define native_password_plugin_name "mysql_native_password" #define native_password_plugin_name "mysql_native_password"
#define old_password_plugin_name "mysql_old_password" #define old_password_plugin_name "mysql_old_password"
uint mariadb_deinitialize_ssl= 1;
uint mysql_port=0; uint mysql_port=0;
char *mysql_unix_port= 0; char *mysql_unix_port= 0;
const char *unknown_sqlstate= "HY000"; const char *unknown_sqlstate= "HY000";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment