[Openvas-commits] r6266 - in trunk/openvas-plugins: . scripts
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Dec 28 14:59:57 CET 2009
Author: mime
Date: 2009-12-28 14:59:45 +0100 (Mon, 28 Dec 2009)
New Revision: 6266
Modified:
trunk/openvas-plugins/ChangeLog
trunk/openvas-plugins/scripts/smb_nt.inc
Log:
Bugfix
Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog 2009-12-28 13:25:57 UTC (rev 6265)
+++ trunk/openvas-plugins/ChangeLog 2009-12-28 13:59:45 UTC (rev 6266)
@@ -1,3 +1,9 @@
+2009-12-23 Michael Meyer <michael.meyer at intevation.de>
+
+ * scripts/smb_nt.inc:
+ Bugfix (Unknown escape sequence, Syntax error with
+ set_kb_item() [null value]).
+
2009-12-24 Chandrashekhar B <bchandra at secpod.com>
* scripts/secpod_xoops_content_module_sql_inj_vuln.nasl
Modified: trunk/openvas-plugins/scripts/smb_nt.inc
===================================================================
--- trunk/openvas-plugins/scripts/smb_nt.inc 2009-12-28 13:25:57 UTC (rev 6265)
+++ trunk/openvas-plugins/scripts/smb_nt.inc 2009-12-28 13:59:45 UTC (rev 6266)
@@ -2315,7 +2315,7 @@
{
# Query KB ("proxy") first.
local_var kb_proxy, kb_proxy_key;
- kb_proxy_key = string ("SMB/registry_get_sz/Registry/HKLM/", key, "/", item);
+ kb_proxy_key = "SMB//registry_get_sz//Registry//HKLM//" + key + "//" + item;
kb_proxy = get_kb_item (kb_proxy_key);
if (!isnull (kb_proxy) || kb_proxy)
return kb_proxy;
@@ -2444,7 +2444,9 @@
}
close(soc);
# Place value into the KB
- set_kb_item (name: kb_proxy_key, value:value);
+ if(!isnull(value)) {
+ set_kb_item (name: kb_proxy_key, value:value);
+ }
return(value);
}
close(soc);
More information about the Openvas-commits
mailing list