diff --git a/common.c b/common.c index 3565aad..45b8f89 100644 --- a/common.c +++ b/common.c @@ -802,7 +802,7 @@ int check_access_rights(int in_socket, const char* service) } } - if (!hosts_ctl(service, host, addr_str, STRING_UNKNOWN)) { + if (!hosts_ctl((char*)service, host, addr_str, STRING_UNKNOWN)) { print_message(msg_connections, "connection from %s(%s): access denied", host, addr_str); close(in_socket); return -1; diff --git a/common.h b/common.h index 02666dc..d186015 100644 --- a/common.h +++ b/common.h @@ -34,6 +34,7 @@ #include #endif +#include "config.h" #include "version.h" #define MAX(a, b) (((a) > (b)) ? (a) : (b)) diff --git a/config.h.in b/config.h.in index 5b0a03b..3a6422e 100644 --- a/config.h.in +++ b/config.h.in @@ -4,7 +4,7 @@ /* Template for config.h, filled by `configure`. */ /* Libwrap, to support host_ctl, /etc/allow and /etc/deny */ -# undef HAVE_LIBWRAP +#undef HAVE_LIBWRAP /* Landlock sandboxing Linux LSM */ #undef HAVE_LANDLOCK