1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 08:59:01 +00:00

Close some sockets that ncat-test.pl open itself.

I was getting intermittent "address already in use" errors.
This commit is contained in:
david
2013-08-16 08:03:14 +00:00
parent 43f364de1a
commit 623b3b9ae4

View File

@@ -1485,6 +1485,7 @@ sub {
accept(S, SOCK) or die;
my ($port, $addr) = sockaddr_in(getpeername(S));
$port == 1234 or die "Client connected to proxy with source port $port, not 1234";
close(S);
};
kill_children;
@@ -1505,6 +1506,7 @@ sub {
accept(S, SOCK) or die;
my ($port, $addr) = sockaddr_in(getpeername(S));
$port == 1234 or die "Client connected to proxy with source port $port, not 1234";
close(S);
};
kill_children;
@@ -1525,6 +1527,7 @@ sub {
accept(S, SOCK) or die;
my ($port, $addr) = sockaddr_in(getpeername(S));
$port == 1234 or die "Client connected to proxy with source port $port, not 1234";
close(S);
};
kill_children;