mirror of
https://github.com/nmap/nmap.git
synced 2026-06-25 10:38:02 +00:00
Fold EACCES and WSAEACCES cases together.
Otherwise this causes a duplicate case error on Windows.
This commit is contained in:
parent
78a606b0b7
commit
8dd5bc49ca
1 changed files with 3 additions and 2 deletions
|
|
@ -337,7 +337,9 @@ void handle_connect_result(mspool *ms, msevent *nse, enum nse_status status) {
|
|||
case 0:
|
||||
nse->status = NSE_STATUS_SUCCESS;
|
||||
break;
|
||||
case EACCES: /* Can be caused by ICMPv6 dest-unreach-admin. */
|
||||
/* EACCES can be caused by ICMPv6 dest-unreach-admin, or when a port is
|
||||
blocked by Windows Firewall (WSAEACCES). */
|
||||
case EACCES:
|
||||
case ECONNREFUSED:
|
||||
case EHOSTUNREACH:
|
||||
case ENETDOWN:
|
||||
|
|
@ -349,7 +351,6 @@ void handle_connect_result(mspool *ms, msevent *nse, enum nse_status status) {
|
|||
case ECONNRESET:
|
||||
#ifdef WIN32
|
||||
case WSAEADDRNOTAVAIL:
|
||||
case WSAEACCES: /* Can happen when Windows Firewall blocks a port. */
|
||||
#endif
|
||||
#ifndef WIN32
|
||||
case EPIPE: /* Has been seen after connect on Linux. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue