diff options
author | unknown <serg@serg.mylan> | 2004-06-01 23:58:33 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-06-01 23:58:33 +0200 |
commit | 869fbff91f848e7433c44994952e67c301f5052b (patch) | |
tree | 31b7886d700b43cecff6bb736071b19f7cb3e3b7 /sql/sql_acl.cc | |
parent | ce0d015384d65199c3e0f830aa4f49937285e12b (diff) | |
download | mariadb-git-869fbff91f848e7433c44994952e67c301f5052b.tar.gz |
check_scramble_323 shuold ensure that the scramble has the correct length
sql/sql_acl.cc:
cleanup
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r-- | sql/sql_acl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 25ff4c5676b..d5427536370 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -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) { |