mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
sql_acl: send client plugin name in the server handshake packet
This commit is contained in:
committed by
Oleksandr Byelkin
parent
8386a529cc
commit
4a819f52e3
@@ -13581,8 +13581,8 @@ static bool send_server_handshake_packet(MPVIO_EXT *mpvio,
|
|||||||
end= (char*) memcpy(end, data + SCRAMBLE_LENGTH_323,
|
end= (char*) memcpy(end, data + SCRAMBLE_LENGTH_323,
|
||||||
data_len - SCRAMBLE_LENGTH_323);
|
data_len - SCRAMBLE_LENGTH_323);
|
||||||
end+= data_len - SCRAMBLE_LENGTH_323;
|
end+= data_len - SCRAMBLE_LENGTH_323;
|
||||||
end= strmake(end, plugin_name(mpvio->plugin)->str,
|
st_mysql_auth *info= (st_mysql_auth*)plugin_decl(mpvio->plugin)->info;
|
||||||
plugin_name(mpvio->plugin)->length);
|
end= strmake(end, info->client_auth_plugin, strlen(info->client_auth_plugin));
|
||||||
|
|
||||||
int res= my_net_write(&mpvio->auth_info.thd->net, (uchar*) buff,
|
int res= my_net_write(&mpvio->auth_info.thd->net, (uchar*) buff,
|
||||||
(size_t) (end - buff + 1)) ||
|
(size_t) (end - buff + 1)) ||
|
||||||
|
Reference in New Issue
Block a user