1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-13641 host errors are not reset after successful connection.

Fixed thd_set_peer_addr() to propagate host error count from
ip_to_hostname() to check_connection(), which tests this count to clear
errors affter successful authentication.
This commit is contained in:
Vladislav Vaintroub
2017-08-25 16:14:03 +00:00
parent 77c41fa725
commit 578b2b05b8
3 changed files with 37 additions and 7 deletions

View File

@ -85,7 +85,10 @@ bool thd_init_client_charset(THD *thd, uint cs_number);
bool setup_connection_thread_globals(THD *thd);
bool thd_prepare_connection(THD *thd);
bool thd_is_connection_alive(THD *thd);
int thd_set_peer_addr(THD *thd, sockaddr_storage *addr, const char *ip, uint port, bool check_proxy_networks);
int thd_set_peer_addr(THD *thd, sockaddr_storage *addr,
const char *ip, uint port,
bool check_proxy_networks,
uint *host_errors);
bool login_connection(THD *thd);
void prepare_new_connection_state(THD* thd);