[evolution-ews] Handle returned error for a single user in a free busy response correctly



commit 42a15bcfc7d85afa05cefa7e15f615292b14f0a2
Author: Or Goshen <orx goshen intel com>
Date:   Tue Aug 2 12:54:45 2011 +0300

    Handle returned error for a single user in a free busy response correctly

 src/server/e-ews-connection.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index 9e1768b..08c8382 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -437,7 +437,8 @@ ews_response_cb (SoupSession *session, SoupMessage *msg, gpointer data)
 					continue;
 				}
 
-				if (strcmp((char *)subparam->name, "FreeBusyResponse") && !ews_get_response_status (subparam, &error)) {
+				if ((strcmp((char *)subparam->name, "FreeBusyResponse") == 0 && !ews_get_response_status (e_soap_parameter_get_first_child (subparam), &error)) ||
+				 !ews_get_response_status (subparam, &error)) {
 					g_simple_async_result_set_from_error (enode->simple, error);
 					break;
 				}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]