mirror of
https://github.com/MariaDB/server.git
synced 2026-04-24 09:15:30 +02:00
Bug #13934049: 64884: LOGINS WITH INCORRECT PASSWORD ARE ALLOWED
Fixed an improper type conversion on return that can make the server accept logins with a wrong password.
This commit is contained in:
parent
17817a3009
commit
5ac773b9b4
1 changed files with 1 additions and 1 deletions
|
|
@ -531,7 +531,7 @@ check_scramble(const char *scramble_arg, const char *message,
|
|||
mysql_sha1_reset(&sha1_context);
|
||||
mysql_sha1_input(&sha1_context, buf, SHA1_HASH_SIZE);
|
||||
mysql_sha1_result(&sha1_context, hash_stage2_reassured);
|
||||
return memcmp(hash_stage2, hash_stage2_reassured, SHA1_HASH_SIZE);
|
||||
return test(memcmp(hash_stage2, hash_stage2_reassured, SHA1_HASH_SIZE));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue