1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Fix for a user management system that resources can be reset to zero

with a GRANT statement.
This commit is contained in:
Sinisa@sinisa.nasamreza.org
2002-06-25 21:20:10 +03:00
parent 66e1777a3e
commit d0cea95f49
4 changed files with 11 additions and 8 deletions

View File

@ -392,7 +392,7 @@ static void reset_mqh(THD *thd, LEX_USER *lu, bool get_them=false)
if (lu) // for GRANT
{
USER_CONN *uc;
volatile uint temp_len=lu->user.length+lu->host.length+2;
uint temp_len=lu->user.length+lu->host.length+2;
char temp_user[USERNAME_LENGTH+HOSTNAME_LENGTH+2];
memcpy(temp_user,lu->user.str,lu->user.length);