From c02febb57ba2130c3e68309b40644922ff361bdf Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 16 Aug 2011 14:03:58 -0400 Subject: - set RQ_FILE when asking tcp-wrappers about client authorization --- src/disp-nis.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/disp-nis.c b/src/disp-nis.c index 4e201ec..62b0e4a 100644 --- a/src/disp-nis.c +++ b/src/disp-nis.c @@ -459,6 +459,7 @@ dispatch_dgram(struct plugin_state *state, int fd) #ifdef HAVE_TCPD /* Check tcp_wrappers access control. */ if ((request_set(state->request_info, + RQ_FILE, -1, RQ_CLIENT_SIN, &cdata.dgram.client_addr, 0) == NULL) || (fromhost(state->request_info), @@ -592,6 +593,7 @@ dispatch_accept_client(struct plugin_state *state, int fd) #ifdef HAVE_TCPD_H /* Check tcp_wrappers access control. */ if ((request_set(state->request_info, + RQ_FILE, fd, RQ_CLIENT_SIN, &client->client_addr, 0) == NULL) || (fromhost(state->request_info), -- cgit