summaryrefslogtreecommitdiff
path: root/sql/mysqld.cc
diff options
context:
space:
mode:
authorpeter@mysql.com <>2002-11-30 20:58:53 +0300
committerpeter@mysql.com <>2002-11-30 20:58:53 +0300
commita24258375a59e37d728dffae05235c59d283a6ab (patch)
treed6fd910fa1f2f46f32ad57ff34b8c30051905e04 /sql/mysqld.cc
parent54ff0efe7cb79c2f3e7acc84f74905d750e51ba0 (diff)
downloadmariadb-git-a24258375a59e37d728dffae05235c59d283a6ab.tar.gz
SCRUM: Montymise code
fix mysql_change_user() for old clients
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r--sql/mysqld.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index a82ec7a3a0a..c7e854611b9 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -2496,6 +2496,9 @@ static void create_new_thread(THD *thd)
for (uint i=0; i < 8 ; i++) // Generate password teststring
thd->scramble[i]= (char) (rnd(&sql_rand)*94+33);
thd->scramble[8]=0;
+ // Back it up as old clients may need it
+ memcpy(thd->old_scramble,thd->scramble,9);
+
thd->real_id=pthread_self(); // Keep purify happy