From 3b15630d70f941ff711872a3301a4b0120b0150f Mon Sep 17 00:00:00 2001 From: jah Date: Sat, 8 May 2010 23:35:41 +0000 Subject: [PATCH] Wrap EPROTO case in an ifdef directive to avoid compiler errors when EPROTO is not defined (such as on windows XP). --- service_scan.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service_scan.cc b/service_scan.cc index 876dff1ad..3b117e2c7 100644 --- a/service_scan.cc +++ b/service_scan.cc @@ -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.