1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

reverting wrong fix

This commit is contained in:
Sinisa@sinisa.nasamreza.org
2002-02-11 14:47:22 +02:00
parent 61d1a10414
commit 969ba240c0

View File

@@ -233,8 +233,7 @@ static bool check_user(THD *thd,enum_server_command command, const char *user,
db ? db : (char*) "");
thd->db_access=0;
/* Don't allow user to connect if he has done too many queries */
if (get_or_create_user_conn(thd,user,thd->host_or_ip,max_questions) &&
(max_questions || max_user_connections))
if ((max_questions || max_user_connections) && get_or_create_user_conn(thd,user,thd->host_or_ip,max_questions))
return -1;
if (max_user_connections && thd->user_connect &&
check_for_max_user_connections(thd->user_connect))