diff options
author | Monty <monty@mariadb.org> | 2022-01-28 13:53:39 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2022-01-28 16:31:03 +0200 |
commit | 7045ec27a6d560752717a0db0e4fb6eba5dc0be9 (patch) | |
tree | 71d13401cff413974663504cc77e4681292eae5d /libmysqld | |
parent | 24c51be6fe66d65e711af210ca4ba26c9cbabe53 (diff) | |
download | mariadb-git-7045ec27a6d560752717a0db0e4fb6eba5dc0be9.tar.gz |
Fixed wrong function call in embedded server
This happens when compiled with HAVE_EMBEDDED_PRIVILEGE_CONTROL.
There is a lot of other problems with the above option that should
be fixed at some point
Diffstat (limited to 'libmysqld')
-rw-r--r-- | libmysqld/lib_sql.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index ddb3f2c71aa..a0c57239dec 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -831,7 +831,7 @@ int check_embedded_connection(MYSQL *mysql, const char *db) /* acl_authenticate() takes the data from thd->net->read_pos */ thd->net.read_pos= (uchar*)buf; - if (acl_authenticate(thd, 0, end - buf)) + if (acl_authenticate(thd, (uint) (end - buf))) { my_free(thd->security_ctx->user); goto err; |