Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ext/mysqlnd/mysqlnd_wireprotocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ php_mysqlnd_greet_read(MYSQLND_CONN_DATA * conn, void * _packet)

if ((size_t) (p - buf) < packet->header.size) {
/* auth_plugin_data is split into two parts */
BAIL_IF_NOT_ENOUGH_DATA_EX(SCRAMBLE_LENGTH - SCRAMBLE_LENGTH_323 + 1);
memcpy(packet->authentication_plugin_data.s + SCRAMBLE_LENGTH_323, p, SCRAMBLE_LENGTH - SCRAMBLE_LENGTH_323);
p+= SCRAMBLE_LENGTH - SCRAMBLE_LENGTH_323;
p++; /* 0x0 at the end of the scramble and thus last byte in the packet in 5.1 and previous */
Expand Down
Loading