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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user