From a41693dfc56f246297f823ddaa2ee5a481fb1837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Tue, 31 Jul 2018 18:53:05 +0200 Subject: [PATCH] Do not decrease count of used connection when connection was rejected #1626 --- lib/MySQL_Session.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/MySQL_Session.cpp b/lib/MySQL_Session.cpp index fbe2707d2..673d28f4d 100644 --- a/lib/MySQL_Session.cpp +++ b/lib/MySQL_Session.cpp @@ -3445,6 +3445,7 @@ void MySQL_Session::handler___status_CONNECTING_CLIENT___STATE_SERVER_HANDSHAKE( free_users=1; } if (max_connections_reached==true || free_users<=0) { + client_authenticated=false; *wrong_pass=true; client_myds->setDSS_STATE_QUERY_SENT_NET(); if (max_connections_reached==true) {