1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +03:00
This commit is contained in:
unknown
2004-06-02 00:27:59 +02:00
parent 869fbff91f
commit 39c7065fae

View File

@@ -629,10 +629,10 @@ int acl_getroot(THD *thd, USER_RESOURCES *mqh,
if (passwd_len == acl_user_tmp->salt_len) if (passwd_len == acl_user_tmp->salt_len)
{ {
if (acl_user_tmp->salt_len == 0 || if (acl_user_tmp->salt_len == 0 ||
(acl_user_tmp->salt_len == SCRAMBLE_LENGTH && (acl_user_tmp->salt_len == SCRAMBLE_LENGTH ?
check_scramble(passwd, thd->scramble, acl_user_tmp->salt) == 0) || check_scramble(passwd, thd->scramble, acl_user_tmp->salt) :
check_scramble_323(passwd, thd->scramble, check_scramble_323(passwd, thd->scramble,
(ulong *) acl_user_tmp->salt) == 0) (ulong *) acl_user_tmp->salt)) == 0)
{ {
acl_user= acl_user_tmp; acl_user= acl_user_tmp;
res= 0; res= 0;