1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Fix reference to not initialized memory

Changed handing of priv_host to fix bug in FLUSH PRIVILEGES
This commit is contained in:
monty@narttu.mysql.fi
2003-04-30 10:15:09 +03:00
parent 4ce8558cfb
commit 9e4f394e59
7 changed files with 17 additions and 9 deletions

View File

@@ -351,7 +351,8 @@ public:
db - currently selected database
ip - client IP
*/
char *host,*user,*priv_user,*priv_host,*db,*ip;
char *host,*user,*priv_user,*db,*ip;
char priv_host[MAX_HOSTNAME];
/* remote (peer) port */
uint16 peer_port;
/* Points to info-string that will show in SHOW PROCESSLIST */