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 <bibekshrestha@gmail.com>
pull/3123/head
Bibek Shrestha 6 years ago committed by Javier Jaramago Fernández
parent b8220382d9
commit 58b4520c0d

@ -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

Loading…
Cancel
Save