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

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Tue Jul 17 12:55:27 CEST 2012


Author: mime
Date: 2012-07-17 12:55:26 +0200 (Tue, 17 Jul 2012)
New Revision: 13743

Modified:
   trunk/openvas-plugins/ChangeLog
   trunk/openvas-plugins/scripts/secpod_database_open_access_vuln.nasl
Log:
Do not use get_app_version() because under some circumstances this will cause the NVT to fork within the foreach.

Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2012-07-17 07:21:06 UTC (rev 13742)
+++ trunk/openvas-plugins/ChangeLog	2012-07-17 10:55:26 UTC (rev 13743)
@@ -1,3 +1,9 @@
+2012-07-17 Michael Meyer <michael.meyer at greenbone.net>
+
+	* scripts/secpod_database_open_access_vuln.nasl:
+	Don't use get_app_version() because under some circumstances
+	this will cause the NVT to fork within the foreach.
+
 2012-07-16  Antu Sanadi <santu at secpod.com>
 
 	* scripts/gb_ubuntu_USN_1502_1.nasl,

Modified: trunk/openvas-plugins/scripts/secpod_database_open_access_vuln.nasl
===================================================================
--- trunk/openvas-plugins/scripts/secpod_database_open_access_vuln.nasl	2012-07-17 07:21:06 UTC (rev 13742)
+++ trunk/openvas-plugins/scripts/secpod_database_open_access_vuln.nasl	2012-07-17 10:55:26 UTC (rev 13743)
@@ -78,7 +78,6 @@
 include("http_func.inc");
 include("network_func.inc");
 include("http_keepalive.inc");
-include("host_details.inc");
 
 ## Variable Initialization
 port = 0;
@@ -122,9 +121,7 @@
 {
   local_var psqlver;
 
-  CPE = "cpe:/a:postgresql:postgresql";
-
-  psqlver = get_app_version(cpe:CPE, nvt:SCRIPT_OID, port:port);
+  psqlver = get_kb_item(string("PostgreSQL/Remote/",port,"/Ver"));
   if(psqlver){
     return(1);
   }



More information about the Openvas-commits mailing list