[Openvas-commits] r5454 - in trunk/openvas-client: . openvas

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Oct 9 11:44:55 CEST 2009


Author: mwiegand
Date: 2009-10-09 11:44:54 +0200 (Fri, 09 Oct 2009)
New Revision: 5454

Modified:
   trunk/openvas-client/ChangeLog
   trunk/openvas-client/openvas/preferences.c
Log:
* openvas/preferences.c (prefs_buffer_parse): Don't drop
preferences just because they are empty. Should solve the "disappearing
preferences" issue in OMP mode. Thanks to Felix Wolfsteller for
isolating this bug.


Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog	2009-10-09 09:43:00 UTC (rev 5453)
+++ trunk/openvas-client/ChangeLog	2009-10-09 09:44:54 UTC (rev 5454)
@@ -1,3 +1,10 @@
+2009-10-09  Michael Wiegand <michael.wiegand at greenbone.net>
+
+	* openvas/preferences.c (prefs_buffer_parse): Don't drop
+	preferences just because they are empty. Should solve the "disappearing
+	preferences" issue in OMP mode. Thanks to Felix Wolfsteller for
+	isolating this bug.
+
 2009-10-09  Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
 
 	* openvas/openvas_plugin.c (openvas_plugin_free): Removed. It was

Modified: trunk/openvas-client/openvas/preferences.c
===================================================================
--- trunk/openvas-client/openvas/preferences.c	2009-10-09 09:43:00 UTC (rev 5453)
+++ trunk/openvas-client/openvas/preferences.c	2009-10-09 09:44:54 UTC (rev 5454)
@@ -340,7 +340,7 @@
     while(t[0] == ' ' && t[0])
       t += sizeof(char);
     if(!t[0])
-      return (1);
+      t = "";
 /* remove the spaces after the pref name */
     while(opt[strlen(opt) - 1] == ' ')
       opt[strlen(opt) - 1] = 0;



More information about the Openvas-commits mailing list