]> Zhao Yanbai Git Server - minix.git/commitdiff
Pass 'service' instead of 'argv[1]' to servxcheck.
authorPhilip Homburg <philip@cs.vu.nl>
Thu, 10 Aug 2006 14:13:28 +0000 (14:13 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Thu, 10 Aug 2006 14:13:28 +0000 (14:13 +0000)
commands/simple/tcpd.c

index f674923e007ae06df731d168ad9578e9cf6bbc26..e8f3948a7612606823aebf9acfd618bbfc6717ba 100755 (executable)
@@ -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);
                }