mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
check_scramble_323 shuold ensure that the scramble has the correct length
This commit is contained in:
@ -629,8 +629,8 @@ int acl_getroot(THD *thd, USER_RESOURCES *mqh,
|
||||
if (passwd_len == acl_user_tmp->salt_len)
|
||||
{
|
||||
if (acl_user_tmp->salt_len == 0 ||
|
||||
acl_user_tmp->salt_len == SCRAMBLE_LENGTH &&
|
||||
check_scramble(passwd, thd->scramble, acl_user_tmp->salt) == 0 ||
|
||||
(acl_user_tmp->salt_len == SCRAMBLE_LENGTH &&
|
||||
check_scramble(passwd, thd->scramble, acl_user_tmp->salt) == 0) ||
|
||||
check_scramble_323(passwd, thd->scramble,
|
||||
(ulong *) acl_user_tmp->salt) == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user