Replace macro with inline function (#7365)

This commit is contained in:
Kamil Tekiela 2021-08-13 20:03:26 +01:00 committed by GitHub
parent 6db4b972d0
commit d902b3a844
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 31 deletions

View file

@ -353,7 +353,7 @@ mysqlnd_auth_handshake(MYSQLND_CONN_DATA * conn,
goto end;
}
SET_NEW_MESSAGE(conn->last_message.s, conn->last_message.l, auth_resp_packet.message, auth_resp_packet.message_len);
mysqlnd_set_string(&conn->last_message, auth_resp_packet.message, auth_resp_packet.message_len);
ret = PASS;
end:
PACKET_FREE(&auth_resp_packet);