1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

sql_acl: send client plugin name in the server handshake packet

This commit is contained in:
Nikita Malyavin
2024-05-31 15:35:33 +02:00
committed by Oleksandr Byelkin
parent 8386a529cc
commit 4a819f52e3

View File

@ -13581,8 +13581,8 @@ static bool send_server_handshake_packet(MPVIO_EXT *mpvio,
end= (char*) memcpy(end, data + SCRAMBLE_LENGTH_323,
data_len - SCRAMBLE_LENGTH_323);
end+= data_len - SCRAMBLE_LENGTH_323;
end= strmake(end, plugin_name(mpvio->plugin)->str,
plugin_name(mpvio->plugin)->length);
st_mysql_auth *info= (st_mysql_auth*)plugin_decl(mpvio->plugin)->info;
end= strmake(end, info->client_auth_plugin, strlen(info->client_auth_plugin));
int res= my_net_write(&mpvio->auth_info.thd->net, (uchar*) buff,
(size_t) (end - buff + 1)) ||