From da3667f63fe3700759b4447332d92f14efe2ba32 Mon Sep 17 00:00:00 2001 From: "hf@deer.(none)" <> Date: Wed, 9 Jun 2004 23:10:09 +0500 Subject: [PATCH] fix for bug #3974 ("SHOW FULL PROCESSLIST" crashes the embedded server) server crashed checking thd->priv_user[0] and thd->priv_user is NULL if NO_EMBEDDED_ACCESS_CHECKS is on. Now i set it to be the same as thd->user --- libmysqld/lib_sql.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 2ceeb43a91e..d1a140c754a 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -511,6 +511,7 @@ int check_embedded_connection(MYSQL *mysql) thd->host= (char*)my_localhost; thd->host_or_ip= thd->host; thd->user= my_strdup(mysql->user, MYF(0)); + thd->priv_user= thd->user; return check_user(thd, COM_CONNECT, NULL, 0, thd->db, true); }