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:
david 2014-05-05 23:29:39 +00:00
parent 7a46025c86
commit f146bdc562

View file

@ -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