Commit 86f62a54 authored by unknown's avatar unknown

Fix for #1224 in 4.0

we didn't specify thd->priv_host properly


libmysqld/lib_sql.cc:
  Specifying of thd->priv_host added
parent d0f757c0
...@@ -224,6 +224,7 @@ static bool check_user(THD *thd,enum_server_command command, const char *user, ...@@ -224,6 +224,7 @@ static bool check_user(THD *thd,enum_server_command command, const char *user,
send_error(net,ER_OUT_OF_RESOURCES); send_error(net,ER_OUT_OF_RESOURCES);
return 1; return 1;
} }
strcpy(thd->priv_host, LOCAL_HOST);
thd->master_access=acl_getroot(thd, thd->host, thd->ip, thd->user, thd->master_access=acl_getroot(thd, thd->host, thd->ip, thd->user,
passwd, thd->scramble, passwd, thd->scramble,
&thd->priv_user, thd->priv_host, &thd->priv_user, thd->priv_host,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment