diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2021-05-26 11:22:40 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2021-05-26 11:22:40 +0300 |
commit | 860e754349646fb8ec8e9231a7fc09a5d4b7c247 (patch) | |
tree | d66c4b8a3c96e8e0d6e6ad9dfb12cdca750eb754 /sql/sql_acl.cc | |
parent | 71e1ddda220c2d452351fc6bf240cb0bad6ccf4a (diff) | |
parent | 365cd08345ab759308cfcac663a2a5880c0c33cb (diff) | |
download | mariadb-git-860e754349646fb8ec8e9231a7fc09a5d4b7c247.tar.gz |
Merge 10.5 into 10.6
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r-- | sql/sql_acl.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 3a4c83e3139..605723a3b96 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -13909,7 +13909,12 @@ static int server_mpvio_read_packet(MYSQL_PLUGIN_VIO *param, uchar **buf) done: if (set_user_salt_if_needed(mpvio->acl_user, mpvio->curr_auth, mpvio->plugin)) + { + ai->thd->clear_error(); // authenticating user should not see these errors + my_error(ER_ACCESS_DENIED_ERROR, MYF(0), ai->thd->security_ctx->user, + ai->thd->security_ctx->host_or_ip, ER_THD(ai->thd, ER_YES)); goto err; + } ai->user_name= ai->thd->security_ctx->user; ai->user_name_length= (uint) strlen(ai->user_name); |