1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Wrap EPROTO case in an ifdef directive to avoid compiler errors when EPROTO is

not defined (such as on windows XP).
This commit is contained in:
jah
2010-05-08 23:35:41 +00:00
parent fea2ad0a33
commit 3b15630d70

View File

@@ -2268,10 +2268,12 @@ static void servicescan_read_handler(nsock_pool nsp, nsock_event nse, void *myda
#ifndef WIN32
case EPIPE:
#endif
#ifdef EPROTO
case EPROTO:
// EPROTO is suspected to be caused by an active IDS/IPS that forges ICMP
// type-12 errors ("Parameter problem"). It's been seen in response to the
// Sqlping probe.
#endif
case EIO:
// Usually an SSL error of some sort (those are presently
// hardcoded to EIO). I'll just try the next probe.