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:
@ -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);
|
||||
|
Reference in New Issue
Block a user