diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-01-24 14:43:29 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-01-24 14:43:29 +0200 |
commit | 25161e6219de4a65b7f8776771bad2af6eb0446e (patch) | |
tree | 28a3488cb929d63620d81d8ce4e0f42d0540ad65 /sql/sql_acl.cc | |
parent | 7930ab7e3326408e6b4d18ca057db93a8b61cc49 (diff) | |
parent | 65350042a42b46e63d24e0e84453619d57d4e203 (diff) | |
download | mariadb-git-25161e6219de4a65b7f8776771bad2af6eb0446e.tar.gz |
Merge 10.1 into 10.2
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r-- | sql/sql_acl.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 76687dd0021..6958098d4a6 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -1593,8 +1593,7 @@ static bool fix_user_plugin_ptr(ACL_USER *user) else return true; - if (user->auth_string.length) - set_user_salt(user, user->auth_string.str, user->auth_string.length); + set_user_salt(user, user->auth_string.str, user->auth_string.length); return false; } @@ -2068,6 +2067,11 @@ static bool acl_load(THD *thd, const Grant_tables& tables) safe_str(user.user.str), safe_str(user.host.hostname)); } + else if (password_len) + { + user.auth_string.str= password; + user.auth_string.length= password_len; + } fix_user_plugin_ptr(&user); } |