Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
None
-
None
Description
Authentication can have first byte :
- 0xff for ERROR_PACKET
- 0xfe for authentication switch.
When in a plugin authentication, those bytes are escaped to avoid any confusion :
else if (packet_len > 0 && (*packet == 1 || *packet == 255 || *packet == 254)) |
{
|
/* |
we cannot allow plugin data packet to start from 255 or 254 -
|
as the client will treat it as an error or "change plugin" packet.
|
We'll escape these bytes with \1. Consequently, we
|
have to escape \1 byte too.
|
*/ |
The connector must remove unescape byte accordingly
Documentation must be updated too to take care of this.