mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +00:00
Add ENETUNREACH to the list of known error codes in service_scan.
Nathan Stocks reported the crash: Unexpected error in NSE_TYPE_READ callback. Error code: 101 (Network is unreachable) It was traced to a middlebox sending admin-prohibited messages, which were surfacing in the socket API as ENETUNREACH. Compare to r17488, which added EPROTO.
This commit is contained in:
parent
7a46025c86
commit
f146bdc562
1 changed files with 1 additions and 0 deletions
|
|
@ -2507,6 +2507,7 @@ static void servicescan_read_handler(nsock_pool nsp, nsock_event nse, void *myda
|
|||
startNextProbe(nsp, nsi, SG, svc, true);
|
||||
}
|
||||
break;
|
||||
case ENETUNREACH:
|
||||
case EHOSTUNREACH:
|
||||
// That is funny. The port scanner listed the port as open. Maybe it got unplugged, or firewalled us, or did
|
||||
// something else nasty during the scan. Shrug. I'll give up on this port
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue