mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge branch '10.5' into 10.6
This commit is contained in:
@ -2334,11 +2334,10 @@ static int set_user_auth(THD *thd, const LEX_CSTRING &user,
|
||||
|
||||
mysql_mutex_assert_owner(&acl_cache->lock);
|
||||
|
||||
// check for SET PASSWORD
|
||||
if (!plugin)
|
||||
{
|
||||
push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN,
|
||||
ER_PLUGIN_IS_NOT_LOADED,
|
||||
ER_THD(thd, ER_PLUGIN_IS_NOT_LOADED), plugin_name);
|
||||
my_error(ER_PLUGIN_IS_NOT_LOADED, MYF(0), plugin_name);
|
||||
return ER_PLUGIN_IS_NOT_LOADED;
|
||||
}
|
||||
|
||||
@ -2392,6 +2391,21 @@ static int set_user_auth(THD *thd, const LEX_CSTRING &user,
|
||||
|
||||
res= 0;
|
||||
end:
|
||||
switch(res)
|
||||
{
|
||||
case ER_OUTOFMEMORY: // should be reported by my_malloc
|
||||
case ER_NOT_VALID_PASSWORD: // should be reported by plugin
|
||||
case ER_PASSWD_LENGTH: // should be reported by plugin
|
||||
DBUG_ASSERT(thd->is_error());
|
||||
/* fall through*/
|
||||
case 0:
|
||||
break;
|
||||
case ER_SET_PASSWORD_AUTH_PLUGIN:
|
||||
my_error(res, MYF(0), plugin_name);
|
||||
break;
|
||||
default:
|
||||
DBUG_ASSERT(0);
|
||||
}
|
||||
if (unlock_plugin)
|
||||
plugin_unlock(thd, plugin);
|
||||
return res;
|
||||
|
Reference in New Issue
Block a user