mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
fix for a possible DoS in the my_net_skip_rest()
This commit is contained in:
@@ -474,7 +474,8 @@ check_user(THD *thd, enum enum_server_command command,
|
||||
}
|
||||
}
|
||||
my_ok(thd);
|
||||
thd->password= test(passwd_len); // remember for error messages
|
||||
thd->net.net_skip_rest_factor= 2; // skip at most 2*max_packet_size
|
||||
thd->password= test(passwd_len); // remember for error messages
|
||||
/* Ready to handle queries */
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user