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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri May 8 17:07:26 CEST 2009


Author: mattm
Date: 2009-05-08 17:07:26 +0200 (Fri, 08 May 2009)
New Revision: 3282

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/omp.c
Log:
	* src/omp.c (omp_xml_handle_start_element): Correct lengths in
	CLIENT_TOP comparisons.


Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2009-05-08 14:16:34 UTC (rev 3281)
+++ trunk/openvas-manager/ChangeLog	2009-05-08 15:07:26 UTC (rev 3282)
@@ -1,3 +1,8 @@
+2009-05-08  Matthew Mundell <mmundell at intevation.de>
+
+	* src/omp.c (omp_xml_handle_start_element): Correct lengths in
+	CLIENT_TOP comparisons.
+
 2009-05-08  Matthew Mundell <matt at mundell.ukfsn.org>
 
 	* (README, INSTALL): Update requirements and descriptions.

Modified: trunk/openvas-manager/src/omp.c
===================================================================
--- trunk/openvas-manager/src/omp.c	2009-05-08 14:16:34 UTC (rev 3281)
+++ trunk/openvas-manager/src/omp.c	2009-05-08 15:07:26 UTC (rev 3282)
@@ -234,12 +234,12 @@
                               /*@unused@*/ gpointer user_data,
                               GError **error)
 {
-  tracef ("   XML  start: %s\n", element_name);
+  tracef ("   XML  start: %s (%i)\n", element_name, client_state);
 
   switch (client_state)
     {
       case CLIENT_TOP:
-        if (strncasecmp ("AUTHENTICATE", element_name, 10) == 0)
+        if (strncasecmp ("AUTHENTICATE", element_name, 12) == 0)
           {
 // FIX
 #if 0
@@ -264,7 +264,7 @@
         break;
 
       case CLIENT_AUTHENTIC:
-        if (strncasecmp ("AUTHENTICATE", element_name, 10) == 0)
+        if (strncasecmp ("AUTHENTICATE", element_name, 12) == 0)
           {
             // FIX Could check if reauthenticating current credentials, to
             // save the loading of the tasks.



More information about the Openvas-commits mailing list