Pass 'service' instead of 'argv[1]' to servxcheck.
This commit is contained in:
parent
6076eddf9c
commit
82a5bffa7d
@ -233,7 +233,7 @@ int main(int argc, char **argv)
|
|||||||
/* Check if access to this service allowed. */
|
/* Check if access to this service allowed. */
|
||||||
if (ioctl(client_fd, NWIOGTCPCONF, &tcpconf) == 0
|
if (ioctl(client_fd, NWIOGTCPCONF, &tcpconf) == 0
|
||||||
&& tcpconf.nwtc_remaddr != tcpconf.nwtc_locaddr
|
&& tcpconf.nwtc_remaddr != tcpconf.nwtc_locaddr
|
||||||
&& !servxcheck(tcpconf.nwtc_remaddr, argv[1], NULL)
|
&& !servxcheck(tcpconf.nwtc_remaddr, service, NULL)
|
||||||
) {
|
) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user