mirror of
https://github.com/nmap/nmap.git
synced 2026-08-28 04:25:15 +00:00
Quit on socket EOF only in --recv-only mode.
Suggested by Tomas Hozza. http://seclists.org/nmap-dev/2013/q1/188
This commit is contained in:
parent
81c777abfd
commit
88a35de3b5
1 changed files with 3 additions and 1 deletions
|
|
@ -832,7 +832,9 @@ static void read_socket_handler(nsock_pool nsp, nsock_event evt, void *data)
|
|||
ncat_assert(type == NSE_TYPE_READ);
|
||||
|
||||
if (status == NSE_STATUS_EOF) {
|
||||
nsock_loop_quit(nsp);
|
||||
/* In --recv-only mode, exit after EOF on the socket. */
|
||||
if (o.recvonly)
|
||||
nsock_loop_quit(nsp);
|
||||
return;
|
||||
} else if (status == NSE_STATUS_ERROR) {
|
||||
loguser("%s.\n", socket_strerror(nse_errorcode(evt)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue