1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-11 16:06:33 +00:00

Add check before 'case ENONET:' to check for ENONET existence

This avoid compiling error in case ENONET is not defined, for
example when compiling nmap without openssl
This commit is contained in:
vincent
2016-10-17 11:21:32 +00:00
parent f704b6e830
commit ab44513a98

View File

@@ -305,12 +305,14 @@ static void handleConnectResult(UltraScanInfo *USI, HostScanStats *hss,
newportstate = PORT_FILTERED;
current_reason = ER_NETUNREACH;
break;
#ifdef ENONET
case ENONET:
/* For Linux at least, this means ICMP type 3 code 8, source host isolated */
newhoststate = HOST_DOWN;
newportstate = PORT_FILTERED;
current_reason = ER_DESTUNREACH;
break;
#endif
case ENETDOWN:
case ENETRESET:
case ECONNABORTED: