[Openvas-commits] r11712 - in trunk/openvas-manager: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Sep 29 09:01:11 CEST 2011


Author: mattm
Date: 2011-09-29 09:01:09 +0200 (Thu, 29 Sep 2011)
New Revision: 11712

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/omp.c
Log:
	* src/omp.c (omp_xml_handle_start_element): Init value in MODIFY_SETTING,
	in case the value is empty.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2011-09-29 06:17:47 UTC (rev 11711)
+++ trunk/openvas-manager/ChangeLog	2011-09-29 07:01:09 UTC (rev 11712)
@@ -1,3 +1,8 @@
+2011-09-29  Matthew Mundell <matthew.mundell at greenbone.net>
+
+	* src/omp.c (omp_xml_handle_start_element): Init value in MODIFY_SETTING,
+	in case the value is empty.
+
 2011-09-28  Matthew Mundell <matthew.mundell at greenbone.net>
 
 	Add OMP MODIFY_SETTING.

Modified: trunk/openvas-manager/src/omp.c
===================================================================
--- trunk/openvas-manager/src/omp.c	2011-09-29 06:17:47 UTC (rev 11711)
+++ trunk/openvas-manager/src/omp.c	2011-09-29 07:01:09 UTC (rev 11712)
@@ -5835,7 +5835,10 @@
         if (strcasecmp ("NAME", element_name) == 0)
           set_client_state (CLIENT_MODIFY_SETTING_NAME);
         else if (strcasecmp ("VALUE", element_name) == 0)
-          set_client_state (CLIENT_MODIFY_SETTING_VALUE);
+          {
+            openvas_append_string (&modify_setting_data->value, "");
+            set_client_state (CLIENT_MODIFY_SETTING_VALUE);
+          }
         else
           {
             if (send_element_error_to_client ("modify_setting",



More information about the Openvas-commits mailing list