mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Small fix to embedded library
we should call check_user in NO_EMBEDDED_ACCESS_CHECKS case to do necessary initializations
This commit is contained in:
@ -491,6 +491,7 @@ int check_embedded_connection(MYSQL *mysql)
|
||||
thd->host= (char*)my_localhost;
|
||||
thd->host_or_ip= thd->host;
|
||||
thd->user= my_strdup(mysql->user, MYF(0));
|
||||
check_user(thd, COM_CONNECT, NULL, 0, thd->db, true);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user