summaryrefslogtreecommitdiff
path: root/sql/sql_connect.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-05-07 16:13:00 +0200
committerSergei Golubchik <sergii@pisem.net>2014-05-07 16:13:00 +0200
commit08f3280235efbaf20988b81653fced604de1a90f (patch)
treee08357aab56f5249040eae0374be62c24066141a /sql/sql_connect.cc
parenta83a4136ffd44e214fd7c7ddf6aa3307242d4f29 (diff)
downloadmariadb-git-08f3280235efbaf20988b81653fced604de1a90f.tar.gz
5.6-compatibility, per-host connect error counter is reset only after the
successful connection, not when a client reply packet is received (that still might be invalid). (test case was merged with perfschema 5.6.17)
Diffstat (limited to 'sql/sql_connect.cc')
-rw-r--r--sql/sql_connect.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_connect.cc b/sql/sql_connect.cc
index 997fd7923a0..1c4449ef7c2 100644
--- a/sql/sql_connect.cc
+++ b/sql/sql_connect.cc
@@ -1067,7 +1067,7 @@ static int check_connection(THD *thd)
return 1; /* The error is set by alloc(). */
}
- auth_rc= acl_authenticate(thd, connect_errors, 0);
+ auth_rc= acl_authenticate(thd, 0);
if (auth_rc == 0 && connect_errors != 0)
{
/*