PR: 241534 Submitted by: Teemu Ollakka <teemu.ollakka@galeracluster.com> Relnotes: http://releases.galeracluster.com/mysql-wsrep-5.7.28-25.20/release-notes-mysql-wsrep-5.7.28-25.20.txt
32 lines
1.2 KiB
C++
32 lines
1.2 KiB
C++
--- sql/conn_handler/socket_connection.cc.orig 2019-10-21 05:21:41 UTC
|
|
+++ sql/conn_handler/socket_connection.cc
|
|
@@ -953,22 +953,25 @@ Channel_info* Mysqld_socket_listener::listen_for_conne
|
|
signal(SIGCHLD, SIG_DFL);
|
|
request_init(&req, RQ_DAEMON, m_libwrap_name, RQ_FILE,
|
|
mysql_socket_getfd(connect_sock), NULL);
|
|
- fromhost(&req);
|
|
+ void (*my_fromhost) (void *) = (void (*)(void *)) fromhost;
|
|
+ my_fromhost(&req);
|
|
|
|
- if (!hosts_access(&req))
|
|
+ int (*my_hosts_access) (void *) = (int (*) (void *)) hosts_access;
|
|
+ if (!my_hosts_access(&req))
|
|
{
|
|
/*
|
|
This may be stupid but refuse() includes an exit(0)
|
|
which we surely don't want...
|
|
clean_exit() - same stupid thing ...
|
|
*/
|
|
+ char *(*my_eval_client) (void *) = (char *(*) (void *)) eval_client;
|
|
syslog(LOG_AUTH | m_deny_severity,
|
|
- "refused connect from %s", eval_client(&req));
|
|
+ "refused connect from %s", my_eval_client(&req));
|
|
|
|
#ifdef HAVE_LIBWRAP_PROTOTYPES
|
|
// Some distros have patched tcpd.h to have proper prototypes
|
|
if (req.sink)
|
|
- (req.sink)(req.fd);
|
|
+ ((void (*)(int)) (req.sink))(req.fd);
|
|
#else
|
|
// Some distros have not patched tcpd.h
|
|
if (req.sink)
|