We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 813d4a0 commit 32cd373Copy full SHA for 32cd373
ext/mysqlnd/mysqlnd_auth.c
@@ -1066,8 +1066,13 @@ mysqlnd_caching_sha2_handle_server_response(struct st_mysqlnd_authentication_plu
1066
{
1067
DBG_ENTER("mysqlnd_caching_sha2_handle_server_response");
1068
MYSQLND_PACKET_CACHED_SHA2_RESULT result_packet;
1069
- conn->payload_decoder_factory->m.init_cached_sha2_result_packet(&result_packet);
1070
+ if (passwd_len == 0) {
1071
+ DBG_INF("empty password fast path");
1072
+ DBG_RETURN(PASS);
1073
+ }
1074
+
1075
+ conn->payload_decoder_factory->m.init_cached_sha2_result_packet(&result_packet);
1076
if (FAIL == PACKET_READ(conn, &result_packet)) {
1077
DBG_RETURN(PASS);
1078
}
0 commit comments