summaryrefslogtreecommitdiff
path: root/sql/set_var.cc
diff options
context:
space:
mode:
authorJon Olav Hauglid <jon.hauglid@oracle.com>2010-10-06 11:29:44 +0200
committerJon Olav Hauglid <jon.hauglid@oracle.com>2010-10-06 11:29:44 +0200
commit38194bf7a5d4927f8adeddc5e00bf4feab08114f (patch)
treeb33dfb00e00ec3f4473c088305871021f437ee46 /sql/set_var.cc
parent623ed1946215e25682847ac3b0ea066cab35ea59 (diff)
parent052c9e392e6d9b770511c88cfec05ef606bff2ed (diff)
downloadmariadb-git-38194bf7a5d4927f8adeddc5e00bf4feab08114f.tar.gz
Merge from mysql-5.5-bugteam to mysql-5.5-runtime.
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r--sql/set_var.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc
index 34b66dea319..4313dcce917 100644
--- a/sql/set_var.cc
+++ b/sql/set_var.cc
@@ -746,9 +746,9 @@ int set_var_password::check(THD *thd)
}
if (!user->user.str)
{
- DBUG_ASSERT(thd->security_ctx->priv_user);
- user->user.str= (char *) thd->security_ctx->priv_user;
- user->user.length= strlen(thd->security_ctx->priv_user);
+ DBUG_ASSERT(thd->security_ctx->user);
+ user->user.str= (char *) thd->security_ctx->user;
+ user->user.length= strlen(thd->security_ctx->user);
}
/* Returns 1 as the function sends error to client */
return check_change_password(thd, user->host.str, user->user.str,