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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Dec 1 14:49:44 CET 2009


Author: mime
Date: 2009-12-01 14:49:41 +0100 (Tue, 01 Dec 2009)
New Revision: 6024

Modified:
   trunk/openvas-plugins/ChangeLog
   trunk/openvas-plugins/scripts/netstat_portscan.nasl
Log:
Bugfix

Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2009-12-01 11:49:52 UTC (rev 6023)
+++ trunk/openvas-plugins/ChangeLog	2009-12-01 13:49:41 UTC (rev 6024)
@@ -1,5 +1,10 @@
 2009-12-01 Michael Meyer <michael.meyer at intevation.de>
 
+	* scripts/netstat_portscan.nasl:
+	Bugfix (invalid port number).
+
+2009-12-01 Michael Meyer <michael.meyer at intevation.de>
+
 	* scripts/asterisk_37153.nasl,
 	scripts/PowerPhlogger_detect.nasl,
 	scripts/cacti_37137.nasl,

Modified: trunk/openvas-plugins/scripts/netstat_portscan.nasl
===================================================================
--- trunk/openvas-plugins/scripts/netstat_portscan.nasl	2009-12-01 11:49:52 UTC (rev 6023)
+++ trunk/openvas-plugins/scripts/netstat_portscan.nasl	2009-12-01 13:49:41 UTC (rev 6024)
@@ -130,7 +130,7 @@
     addr = v[2];
     port = v[3];
     # display("> ", addr, ":", port, " (", proto, ")\n");
-    if (port < 1 || port > 65535)
+    if (int(port) < 1 || int(port) > 65535)
      display('netstat_portscan(', get_host_ip(), '): invalid port number ', port, '\n');
     else if ((check && addr != "127.0.0.1") || 
         addr == "0.0.0.0" || addr == ip || addr == ":::" || addr == '*')



More information about the Openvas-commits mailing list