[Openvas-commits] r6221 - in trunk/openvas-manager: . src
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Dec 21 14:10:59 CET 2009
Author: mattm
Date: 2009-12-21 14:10:57 +0100 (Mon, 21 Dec 2009)
New Revision: 6221
Modified:
trunk/openvas-manager/ChangeLog
trunk/openvas-manager/src/omp.c
Log:
* src/omp.c (omp_xml_handle_end_element): In CLIENT_CREATE_AGENT require
an installer.
Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog 2009-12-21 11:43:55 UTC (rev 6220)
+++ trunk/openvas-manager/ChangeLog 2009-12-21 13:10:57 UTC (rev 6221)
@@ -1,3 +1,8 @@
+2009-12-18 Matthew Mundell <matthew.mundell at intevation.de>
+
+ * src/omp.c (omp_xml_handle_end_element): In CLIENT_CREATE_AGENT require
+ an installer.
+
2009-12-21 Felix Wolfsteller <felix.wolfsteller at intevation.de>
* CMakeLists.txt: Don't ignore necessary files when creating the source
Modified: trunk/openvas-manager/src/omp.c
===================================================================
--- trunk/openvas-manager/src/omp.c 2009-12-21 11:43:55 UTC (rev 6220)
+++ trunk/openvas-manager/src/omp.c 2009-12-21 13:10:57 UTC (rev 6221)
@@ -5268,6 +5268,13 @@
"CREATE_AGENT name must be at"
" least one character long"));
}
+ else if (strlen (modify_task_file) == 0)
+ {
+ SEND_TO_CLIENT_OR_FAIL
+ (XML_ERROR_SYNTAX ("create_agent",
+ "CREATE_AGENT installer must be at"
+ " least one byte long"));
+ }
else switch (create_agent (modify_task_name,
modify_task_comment,
modify_task_file, /* Installer. */
More information about the Openvas-commits
mailing list