mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-08 21:37:56 +00:00
bug-1402776 Updated all modules using MySQLProtocolParser
This commit is contained in:
@@ -4706,14 +4706,11 @@ sub parse_client_handshake_packet {
|
||||
return;
|
||||
}
|
||||
|
||||
my $code_len = hex($buff_len);
|
||||
# The (.*?)00.?\Z part in the regex, is to remove an erroneous
|
||||
# null char + mysql_native_password after the db name
|
||||
# https://bugs.launchpad.net/percona-toolkit/+bug/1402776
|
||||
my $code_len = hex($buff_len);
|
||||
my ( $db ) = $data =~ m!
|
||||
^.{64}${user}00.. # Everything matched before
|
||||
(?:..){$code_len} # The scramble buffer
|
||||
(.*?)00.*\Z # The database name
|
||||
(.*)00.*\Z # The database name
|
||||
!x;
|
||||
my $pkt = {
|
||||
user => to_string($user),
|
||||
|
@@ -8722,7 +8722,7 @@ sub parse_client_handshake_packet {
|
||||
my ( $db ) = $data =~ m!
|
||||
^.{64}${user}00.. # Everything matched before
|
||||
(?:..){$code_len} # The scramble buffer
|
||||
(.*)00\Z # The database name
|
||||
(.*)00.*\Z # The database name
|
||||
!x;
|
||||
my $pkt = {
|
||||
user => to_string($user),
|
||||
|
Reference in New Issue
Block a user