diff options
author | unknown <peter@mysql.com> | 2002-12-05 03:55:29 +0300 |
---|---|---|
committer | unknown <peter@mysql.com> | 2002-12-05 03:55:29 +0300 |
commit | 339cf7ce7bc856996812786f95dfa9f8717d3b99 (patch) | |
tree | 0d1d28ba46e738e0d01fff771cd505a057e5d664 /sql/password.c | |
parent | d318b4b857c2c8312842ec132aad786ce165138f (diff) | |
download | mariadb-git-339cf7ce7bc856996812786f95dfa9f8717d3b99.tar.gz |
Basically minor code optimizations and cleanups
client/mysqladmin.c:
fix folding
libmysql/libmysql.c:
Minor optimizations
sql/mini_client.cc:
Minor optimizations
sql/password.c:
Optimiations
sql/sql_acl.cc:
Get rid of stage parameter and flag old passwords with '*' instead of zero
sql/sql_acl.h:
fix prototype
sql/sql_parse.cc:
Minor optimizations
Diffstat (limited to 'sql/password.c')
-rw-r--r-- | sql/password.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/password.c b/sql/password.c index 6f1557bbd34..b5254ad06b7 100644 --- a/sql/password.c +++ b/sql/password.c @@ -556,7 +556,7 @@ void get_hash_and_password(ulong* salt, uint8 pversion, char* hash, unsigned cha val=*(++salt); for (t=3; t>=0; t--) { - bin_password[t]=val%256; + bin_password[t]=val & 255; val>>=8; /* Scroll 8 bits to get next part*/ } bin_password+=4; /* Get to next 4 chars*/ |