[Openvas-commits] r11716 - in trunk/openvas-manager: . src
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Sep 29 15:12:43 CEST 2011
Author: mattm
Date: 2011-09-29 15:12:42 +0200 (Thu, 29 Sep 2011)
New Revision: 11716
Modified:
trunk/openvas-manager/ChangeLog
trunk/openvas-manager/src/omp.c
Log:
* src/omp.c (omp_xml_handle_end_element): In the authentication response
if the timezone is empty send UTC.
Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog 2011-09-29 13:09:16 UTC (rev 11715)
+++ trunk/openvas-manager/ChangeLog 2011-09-29 13:12:42 UTC (rev 11716)
@@ -1,5 +1,10 @@
2011-09-29 Matthew Mundell <matthew.mundell at greenbone.net>
+ * src/omp.c (omp_xml_handle_end_element): In the authentication response
+ if the timezone is empty send UTC.
+
+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.
Modified: trunk/openvas-manager/src/omp.c
===================================================================
--- trunk/openvas-manager/src/omp.c 2011-09-29 13:09:16 UTC (rev 11715)
+++ trunk/openvas-manager/src/omp.c 2011-09-29 13:12:42 UTC (rev 11716)
@@ -9012,18 +9012,20 @@
}
else
{
- SENDF_TO_CLIENT_OR_FAIL ("<authenticate_response"
- " status=\"" STATUS_OK "\""
- " status_text=\"" STATUS_OK_TEXT "\">"
- "<role>%s</role>"
- "<timezone>%s</timezone>"
- "</authenticate_response>",
- current_credentials.role
- ? current_credentials.role
- : "",
- current_credentials.timezone
- ? current_credentials.timezone
- : "");
+ SENDF_TO_CLIENT_OR_FAIL
+ ("<authenticate_response"
+ " status=\"" STATUS_OK "\""
+ " status_text=\"" STATUS_OK_TEXT "\">"
+ "<role>%s</role>"
+ "<timezone>%s</timezone>"
+ "</authenticate_response>",
+ current_credentials.role
+ ? current_credentials.role
+ : "",
+ (current_credentials.timezone
+ && strlen (current_credentials.timezone))
+ ? current_credentials.timezone
+ : "UTC");
set_client_state (CLIENT_AUTHENTIC);
}
break;
More information about the Openvas-commits
mailing list