summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 36dd07159cc..70cbe6080d7 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -699,7 +699,7 @@ int check_embedded_connection(MYSQL *mysql, const char *db)
thd_init_client_charset(thd, mysql->charset->number);
thd->update_charset();
Security_context *sctx= thd->security_ctx;
- sctx->set_phost(my_localhost);
+ sctx->set_host(my_localhost);
sctx->host_or_ip= sctx->get_host()->ptr();
strmake(sctx->priv_host, (char*) my_localhost, MAX_HOSTNAME-1);
strmake(sctx->priv_user, mysql->user, USERNAME_LENGTH-1);
@@ -729,7 +729,7 @@ int check_embedded_connection(MYSQL *mysql, const char *db)
if (mysql->options.client_ip)
{
sctx->set_host(my_strdup(mysql->options.client_ip, MYF(0)));
- sctx->set_ip(my_strdup(sctx->host()->ptr(), MYF(0)));
+ sctx->set_ip(my_strdup(sctx->get_host()->ptr(), MYF(0)));
}
else
sctx->set_host((char*)my_localhost);