1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-29 02:49:01 +00:00

Close stdout on socket EOF.

This commit is contained in:
david
2013-02-09 08:29:39 +00:00
parent 88a35de3b5
commit 9901c8e7a9

View File

@@ -832,6 +832,7 @@ static void read_socket_handler(nsock_pool nsp, nsock_event evt, void *data)
ncat_assert(type == NSE_TYPE_READ);
if (status == NSE_STATUS_EOF) {
Close(STDOUT_FILENO);
/* In --recv-only mode, exit after EOF on the socket. */
if (o.recvonly)
nsock_loop_quit(nsp);