From f146bdc56251730db19133d050a0fff870628752 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 5 May 2014 23:29:39 +0000 Subject: [PATCH] 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. --- service_scan.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/service_scan.cc b/service_scan.cc index 40bb7efa0..9e3a8eb56 100644 --- a/service_scan.cc +++ b/service_scan.cc @@ -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