1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix reference to not initialized memory

Changed handing of priv_host to fix bug in FLUSH PRIVILEGES
This commit is contained in:
monty@narttu.mysql.fi
2003-04-30 10:15:09 +03:00
parent 4ce8558cfb
commit 9e4f394e59
7 changed files with 17 additions and 9 deletions

View File

@ -206,7 +206,7 @@ static bool check_user(THD *thd,enum_server_command command, const char *user,
}
thd->master_access=acl_getroot(thd, thd->host, thd->ip, thd->user,
passwd, thd->scramble,
&thd->priv_user, &thd->priv_host,
&thd->priv_user, thd->priv_host,
protocol_version == 9 ||
!(thd->client_capabilities &
CLIENT_LONG_PASSWORD),&ur);