From 58b4520c0dc362b148d71f1d7826b95ebbda58fe Mon Sep 17 00:00:00 2001 From: Bibek Shrestha Date: Wed, 15 Apr 2020 15:33:05 -0400 Subject: [PATCH] Add CLIENT_DEPRECATE_EOF to capabilities flag Note that "\x8f\x80\x15" is in reverse byte order. So the flag becomes 15808f. 15 - Authenticatin plugin length 80 - 10000000 (unused) 8f - 10001111 (the leftmost 1 is for CLIENT_SESSION_TRACK) This is changed to 15818f. 15 - Remains the same 81 - 10000001 (the last byte says CLIENT_DEPRECATE_EOF enabled) 8f - 10001111 (remains the same) Signed-off-by: Bibek Shrestha --- lib/MySQL_Protocol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MySQL_Protocol.cpp b/lib/MySQL_Protocol.cpp index 2c42abb76..796d7e5f0 100644 --- a/lib/MySQL_Protocol.cpp +++ b/lib/MySQL_Protocol.cpp @@ -1223,7 +1223,7 @@ bool MySQL_Protocol::generate_pkt_initial_handshake(bool send, void **ptr, unsig uint8_t uint8_charset = ci->nr & 255; memcpy(_ptr+l,&uint8_charset, sizeof(uint8_charset)); l+=sizeof(uint8_charset); memcpy(_ptr+l,&server_status, sizeof(server_status)); l+=sizeof(server_status); - memcpy(_ptr+l,"\x8f\x80\x15",3); l+=3; + memcpy(_ptr+l,"\x8f\x81\x15",3); l+=3; for (i=0;i<10; i++) { _ptr[l]=0x00; l++; } //filler //create_random_string(mypkt->data+l,12,(struct my_rnd_struct *)&rand_st); l+=12; //#ifdef MARIADB_BASE_VERSION