Commit 0ab38c8c authored by unknown's avatar unknown

Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1

into mc05.(none):/space2/tomas/mysql-4.1-ndb-test
parents c8b3aa9c 75af862b
...@@ -218,6 +218,8 @@ check_scramble_323(const char *scrambled, const char *message, ...@@ -218,6 +218,8 @@ check_scramble_323(const char *scrambled, const char *message,
to=buff; to=buff;
for (pos=scrambled ; *pos ; pos++) for (pos=scrambled ; *pos ; pos++)
*to++=(char) (floor(my_rnd(&rand_st)*31)+64); *to++=(char) (floor(my_rnd(&rand_st)*31)+64);
if (pos-scrambled != SCRAMBLE_LENGTH_323)
return 1;
extra=(char) (floor(my_rnd(&rand_st)*31)); extra=(char) (floor(my_rnd(&rand_st)*31));
to=buff; to=buff;
while (*scrambled) while (*scrambled)
......
...@@ -629,10 +629,10 @@ int acl_getroot(THD *thd, USER_RESOURCES *mqh, ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment