MXS-1826: Handle Authswitch packet for COM_CHANGE_USER

If the server responds with a COM_CHANGE_USER to the default
authentication plugin, the backend protocol will answer correctly.
This commit is contained in:
Markus Mäkelä
2018-04-28 11:01:48 +03:00
parent 34aefa55c8
commit 452f2190ae
3 changed files with 52 additions and 17 deletions

View File

@ -71,6 +71,7 @@ MySQLProtocol* mysql_protocol_init(DCB* dcb, int fd)
p->extra_capabilities = 0;
p->ignore_replies = 0;
p->collect_result = false;
p->changing_user = false;
#if defined(SS_DEBUG)
p->protocol_chk_top = CHK_NUM_PROTOCOL;
p->protocol_chk_tail = CHK_NUM_PROTOCOL;