Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
6341c93d
Commit
6341c93d
authored
Jun 01, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check_scramble_323 shuold ensure that the scramble has the correct length
parent
53d05f4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
sql/password.c
sql/password.c
+2
-0
sql/sql_acl.cc
sql/sql_acl.cc
+2
-2
No files found.
sql/password.c
View file @
6341c93d
...
...
@@ -218,6 +218,8 @@ check_scramble_323(const char *scrambled, const char *message,
to
=
buff
;
for
(
pos
=
scrambled
;
*
pos
;
pos
++
)
*
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
));
to
=
buff
;
while
(
*
scrambled
)
...
...
sql/sql_acl.cc
View file @
6341c93d
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment