mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-13060 Server Audit Plugin Crashes with AWS KMS plugin
don't do auditing if thd is NULL. Collaterals: * copy-paste bugs server_audit.c * uninitialized user field when thd in NULL
This commit is contained in:
@ -170,6 +170,8 @@ void mysql_audit_general(THD *thd, uint event_subtype,
|
||||
}
|
||||
else
|
||||
{
|
||||
event.general_user= NULL;
|
||||
event.general_user_length= 0;
|
||||
event.general_thread_id= 0;
|
||||
event.general_query= NULL;
|
||||
event.general_query_length= 0;
|
||||
|
Reference in New Issue
Block a user