Ignore non-matching protocols
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 18 Jun 2013 19:35:15 +0000 (21:35 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 21 Jun 2013 21:25:25 +0000 (23:25 +0200)
src/libimcv/plugins/imv_scanner/imv_scanner_agent.c

index 6bf85c6..1757783 100644 (file)
@@ -368,9 +368,9 @@ METHOD(imv_agent_if_t, batch_ending, TNC_Result,
                                bool passed, found = FALSE;
                                char buf[20];
 
-                               if (blocked)
+                               if (blocked || protocol != protocol_family)
                                {
-                                       /* ignore closed ports */
+                                       /* ignore closed ports or non-matching protocols */
                                        continue;
                                }