[Openvas-commits] r2657 - in trunk/openvas-client: . nessus
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Mar 4 12:20:43 CET 2009
Author: felix
Date: 2009-03-04 12:20:41 +0100 (Wed, 04 Mar 2009)
New Revision: 2657
Modified:
trunk/openvas-client/ChangeLog
trunk/openvas-client/nessus/parser.c
Log:
Disabled priority mapping at server message parsing level.
Code remained. Parser module should behave like in rev. 1791.
* nessus/parser.c (parse_host_add_data): Disabled modifications of
data regarding security messages.
Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog 2009-03-04 11:04:07 UTC (rev 2656)
+++ trunk/openvas-client/ChangeLog 2009-03-04 11:20:41 UTC (rev 2657)
@@ -1,5 +1,13 @@
2009-03-04 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+ Disabled priority mapping at server message parsing level.
+ Code remained. Parser module should behave like in rev. 1791.
+
+ * nessus/parser.c (parse_host_add_data): Disabled modifications of
+ data regarding security messages.
+
+2009-03-04 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
Use of g_strdup_printf instead of malloc + sprintf, cosmetics in parser
module.
Modified: trunk/openvas-client/nessus/parser.c
===================================================================
--- trunk/openvas-client/nessus/parser.c 2009-03-04 11:04:07 UTC (rev 2656)
+++ trunk/openvas-client/nessus/parser.c 2009-03-04 11:20:41 UTC (rev 2657)
@@ -600,6 +600,11 @@
char * script_id;
char * old;
+ msgt = priority_type_to_str (type);
+
+ if (msgt == NULL)
+ return;
+
hostname = parse_separator(servmsg);
if(!hostname){
return;
@@ -625,7 +630,7 @@
efree(&data);
return;
}
-
+#if 0
if ((msgt = priority_type_to_str(type)) == NULL)
return;
@@ -634,6 +639,7 @@
if ((msgt = priority_type_to_str(type)) == NULL)
return;
+#endif
old = data;
data = rmslashes(old);
More information about the Openvas-commits
mailing list