From 82a5bffa7d01ec12326f90203e06143596b601f9 Mon Sep 17 00:00:00 2001 From: Philip Homburg Date: Thu, 10 Aug 2006 14:13:28 +0000 Subject: [PATCH] Pass 'service' instead of 'argv[1]' to servxcheck. --- commands/simple/tcpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/simple/tcpd.c b/commands/simple/tcpd.c index f674923e0..e8f3948a7 100755 --- a/commands/simple/tcpd.c +++ b/commands/simple/tcpd.c @@ -233,7 +233,7 @@ int main(int argc, char **argv) /* Check if access to this service allowed. */ if (ioctl(client_fd, NWIOGTCPCONF, &tcpconf) == 0 && tcpconf.nwtc_remaddr != tcpconf.nwtc_locaddr - && !servxcheck(tcpconf.nwtc_remaddr, argv[1], NULL) + && !servxcheck(tcpconf.nwtc_remaddr, service, NULL) ) { exit(1); } -- 2.44.0