mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
f704b6e830
commit
ab44513a98
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue