summaryrefslogtreecommitdiff
path: root/sql/sql_acl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r--sql/sql_acl.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index 4b3a20b0014..cdfe2f2e5b3 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -652,7 +652,12 @@ static void acl_update_user(const char *user, const char *host,
acl_user->host.hostname && !strcmp(host,acl_user->host.hostname))
{
acl_user->access=privileges;
- acl_user->user_resource=*mqh;
+ if (mqh->questions)
+ acl_user->user_resource.questions=mqh->questions;
+ if (mqh->updates)
+ acl_user->user_resource.updates=mqh->updates;
+ if (mqh->connections)
+ acl_user->user_resource.connections=mqh->connections;
#ifdef HAVE_OPENSSL
acl_user->ssl_type=ssl_type;
acl_user->ssl_cipher=ssl_cipher;