mirror of
https://github.com/MariaDB/server.git
synced 2026-05-04 14:15:33 +02:00
Small fix to embedded library
we should call check_user in NO_EMBEDDED_ACCESS_CHECKS case to do necessary initializations libmysqld/lib_sql.cc: call of check_user added
This commit is contained in:
parent
d8c5358115
commit
8b0d52ab12
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue