mirror of
https://github.com/MariaDB/server.git
synced 2026-04-22 08:15:31 +02:00
Bug #57559: Crash in Client plugin api
The plugin code was releasing the plugin and only then was reporting an error referencing it. Fixed by first reporting an error and then freeing up the plugin.
This commit is contained in:
parent
376090caaa
commit
c4afc041d0
1 changed files with 2 additions and 2 deletions
|
|
@ -176,11 +176,11 @@ err2:
|
|||
if (plugin->deinit)
|
||||
plugin->deinit();
|
||||
err1:
|
||||
if (dlhandle)
|
||||
dlclose(dlhandle);
|
||||
set_mysql_extended_error(mysql, CR_AUTH_PLUGIN_CANNOT_LOAD, unknown_sqlstate,
|
||||
ER(CR_AUTH_PLUGIN_CANNOT_LOAD), plugin->name,
|
||||
errmsg);
|
||||
if (dlhandle)
|
||||
dlclose(dlhandle);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue