summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authormonty@narttu.mysql.fi <>2003-04-30 10:15:09 +0300
committermonty@narttu.mysql.fi <>2003-04-30 10:15:09 +0300
commit9e4f394e59e6047609032344b46b7432b43840ac (patch)
tree4f7f621a2857e70f280e3136c841ee9f70161eff /sql/sql_parse.cc
parent4ce8558cfb1f5aa6e198ac0d1ff949096f335c6b (diff)
downloadmariadb-git-9e4f394e59e6047609032344b46b7432b43840ac.tar.gz
Fix reference to not initialized memory
Changed handing of priv_host to fix bug in FLUSH PRIVILEGES
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 33b6c3f45c0..8d4ae065aa6 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -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);