Commit f5e6f0e7 authored by unknown's avatar unknown

bugfix for max_user_connections

parent 62599173
......@@ -233,8 +233,8 @@ 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 ((max_questions || max_user_connections) &&
get_or_create_user_conn(thd,user,thd->host_or_ip,max_questions))
if (get_or_create_user_conn(thd,user,thd->host_or_ip,max_questions) &&
(max_questions || max_user_connections))
return -1;
if (max_user_connections && thd->user_connect &&
check_for_max_user_connections(thd->user_connect))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment