From: Philip Homburg Date: Thu, 10 Aug 2006 14:13:28 +0000 (+0000) Subject: Pass 'service' instead of 'argv[1]' to servxcheck. X-Git-Tag: v3.1.3~208 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/syslog.3.html?a=commitdiff_plain;h=82a5bffa7d01ec12326f90203e06143596b601f9;p=minix.git Pass 'service' instead of 'argv[1]' to servxcheck. --- 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); }