File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14196,11 +14196,11 @@ static int server_mpvio_write_packet(MYSQL_PLUGIN_VIO *param,
14196
14196
res= send_server_handshake_packet (mpvio, (char *) packet, packet_len);
14197
14197
else if (mpvio->status == MPVIO_EXT::RESTART)
14198
14198
res= send_plugin_request_packet (mpvio, packet, packet_len);
14199
- else if (packet_len > 0 && (*packet == 1 || *packet == 255 || *packet == 254 ))
14199
+ else if (packet_len > 0 && (*packet < 2 || *packet > 253 ))
14200
14200
{
14201
14201
/*
14202
- we cannot allow plugin data packet to start from 255 or 254 -
14203
- as the client will treat it as an error or "change plugin" packet.
14202
+ we cannot allow plugin data packet to start from 0, 255 or 254 -
14203
+ as the client will treat it as an OK, ERROR or "change plugin" packet.
14204
14204
We'll escape these bytes with \1. Consequently, we
14205
14205
have to escape \1 byte too.
14206
14206
*/
You can’t perform that action at this time.
0 commit comments