[Openvas-commits] r12956 - in trunk/openvas-libraries: . nasl
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Mon Mar 5 19:53:41 CET 2012
Author: mattm
Date: 2012-03-05 19:53:41 +0100 (Mon, 05 Mar 2012)
New Revision: 12956
Modified:
trunk/openvas-libraries/ChangeLog
trunk/openvas-libraries/nasl/nasl_debug.c
Log:
* nasl/nasl_debug.c (nasl_perror): Add prospective code to send an
ERRMSG to the client.
Modified: trunk/openvas-libraries/ChangeLog
===================================================================
--- trunk/openvas-libraries/ChangeLog 2012-03-05 18:01:51 UTC (rev 12955)
+++ trunk/openvas-libraries/ChangeLog 2012-03-05 18:53:41 UTC (rev 12956)
@@ -1,3 +1,8 @@
+2012-03-05 Matthew Mundell <matthew.mundell at greenbone.net>
+
+ * nasl/nasl_debug.c (nasl_perror): Add prospective code to send an
+ ERRMSG to the client.
+
2012-03-02 Felix Wolfsteller <felix.wolfsteller at greenbone.net>
* misc/openvas_server.c (openvas_server_open), nasl/nasl_ssh.c
@@ -36,7 +41,7 @@
* misc/openvas_server.c (openvas_server_new): Removed dead code
about a magic user "admin" that was removed long time ago.
-
+
2012-03-01 Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
This patch was developed by Bernhard Herzog.
@@ -57,7 +62,7 @@
* nasl/nasl_tree.c (alloc_RE_cell): Print error string along with
error code to help understand RE errors.
-
+
2012-02-29 Felix Wolfsteller <felix.wolfsteller at greenbone.net>
* base/openvas_string.h, base/openvas_string.c
Modified: trunk/openvas-libraries/nasl/nasl_debug.c
===================================================================
--- trunk/openvas-libraries/nasl/nasl_debug.c 2012-03-05 18:01:51 UTC (rev 12955)
+++ trunk/openvas-libraries/nasl/nasl_debug.c 2012-03-05 18:53:41 UTC (rev 12956)
@@ -1,4 +1,4 @@
-/* Nessus Attack Scripting Language
+/* Nessus Attack Scripting Language
*
* Copyright (C) 2002 - 2004 Tenable Network Security
*
@@ -28,6 +28,7 @@
#include "nasl_var.h"
#include "nasl_lex_ctxt.h"
#include "exec.h"
+#include "plugutils.h"
extern FILE *nasl_trace_fp;
@@ -57,6 +58,13 @@
fprintf (stderr, "[%d](%s) %s\n", getpid (), script_name, debug_message);
else
fprintf (stderr, "[%d](%s) %s", getpid (), script_name, debug_message);
+
+ /** @todo Enable this when the NVTs are ready. Sends ERRMSG to client. */
+#if 0
+ if (lexic != NULL)
+ post_error (lexic->script_infos, 1, debug_message);
+#endif
+
va_end (param);
}
More information about the Openvas-commits
mailing list