[Openvas-commits] r11690 - in trunk/openvas-plugins: . scripts

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Sep 26 15:04:41 CEST 2011


Author: mime
Date: 2011-09-26 15:04:36 +0200 (Mon, 26 Sep 2011)
New Revision: 11690

Modified:
   trunk/openvas-plugins/ChangeLog
   trunk/openvas-plugins/scripts/ping_host.nasl
Log:
Show a note if all methods are disabled and exit

Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2011-09-26 12:45:37 UTC (rev 11689)
+++ trunk/openvas-plugins/ChangeLog	2011-09-26 13:04:36 UTC (rev 11690)
@@ -1,6 +1,11 @@
 2011-09-26  Michael Meyer <michael.meyer at greenbone.net>
 
 	* scripts/ping_host.nasl:
+	Show a note if all methods are disabled and exit.
+
+2011-09-26  Michael Meyer <michael.meyer at greenbone.net>
+
+	* scripts/ping_host.nasl:
 	Added possibility to disable certain methods.
 
 2011-09-26  Henri Doreau <henri.doreau at greenbone.net>

Modified: trunk/openvas-plugins/scripts/ping_host.nasl
===================================================================
--- trunk/openvas-plugins/scripts/ping_host.nasl	2011-09-26 12:45:37 UTC (rev 11689)
+++ trunk/openvas-plugins/scripts/ping_host.nasl	2011-09-26 13:04:36 UTC (rev 11690)
@@ -80,6 +80,11 @@
   }
 }  
 
+if("no" >< icmp_ping && "no" >< tcp_ping) {
+    log_message(data: "ping_host.nasl not launched because all methods are disabled");
+    exit(0);
+}  
+
 if("no" >< mark_dead && "no" >< report_dead)exit(0);
 
 if("yes" >< icmp_ping) {



More information about the Openvas-commits mailing list