Skip to content

Commit

Permalink
actually include config.h
Browse files Browse the repository at this point in the history
  • Loading branch information
yrutschle committed Feb 19, 2025
1 parent 3a1c31d commit fabf0a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions common.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <sys/capability.h>
#endif

#include "config.h"
#include "version.h"

#define MAX(a, b) (((a) > (b)) ? (a) : (b))
Expand Down
2 changes: 1 addition & 1 deletion config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fabf0a1

Please sign in to comment.