From 88fd3c89ff1e257656611f428359c8971506bbc3 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 12 Dec 2003 18:00:54 +0400 Subject: Fix for #1224 in 4.0 we didn't specify thd->priv_host properly libmysqld/lib_sql.cc: Specifying of thd->priv_host added --- libmysqld/lib_sql.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'libmysqld') diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index d33f384f81e..03e3c1fee30 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -224,6 +224,7 @@ static bool check_user(THD *thd,enum_server_command command, const char *user, send_error(net,ER_OUT_OF_RESOURCES); return 1; } + strcpy(thd->priv_host, LOCAL_HOST); thd->master_access=acl_getroot(thd, thd->host, thd->ip, thd->user, passwd, thd->scramble, &thd->priv_user, thd->priv_host, -- cgit v1.2.1