Commit 8d3795f1 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-22487 WolfSSL - server prints "Please supply a buffer for error string"

Supplied buffer for error string, on WolfSSL's request.
parent 2c3c851d
......@@ -4751,7 +4751,11 @@ static void init_ssl()
{
ulong err;
while ((err= ERR_get_error()))
sql_print_warning("SSL error: %s", ERR_error_string(err, NULL));
{
char buf[256];
ERR_error_string_n(err, buf, sizeof(buf));
sql_print_warning("SSL error: %s",buf);
}
}
else
ERR_remove_state(0);
......
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