[gnome-online-accounts/gnome-3-10] ewsclient: Autodiscover XML can contain multiple Protocol elements
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-10] ewsclient: Autodiscover XML can contain multiple Protocol elements
- Date: Fri, 30 May 2014 13:46:24 +0000 (UTC)
commit 70250bbe04cd19599d518ce5e13ac790f81a8201
Author: Nathan Caza <mastercactapus gmail com>
Date: Mon May 12 20:31:07 2014 -0500
ewsclient: Autodiscover XML can contain multiple Protocol elements
The EWS backend server does not always send the data we need in the
first <Protocol> node, so we need to keep searching if the first one
does not have the required values.
https://bugzilla.gnome.org/show_bug.cgi?id=730041
src/goabackend/goaewsclient.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/goabackend/goaewsclient.c b/src/goabackend/goaewsclient.c
index be2aed0..39b5945 100644
--- a/src/goabackend/goaewsclient.c
+++ b/src/goabackend/goaewsclient.c
@@ -294,7 +294,11 @@ ews_client_autodiscover_response_cb (SoupSession *session, SoupMessage *msg, gpo
if (ews_client_check_node (node, "Protocol"))
{
op_res = ews_client_autodiscover_parse_protocol (node);
- break;
+ /* Since the server may send back multiple <Protocol> nodes
+ * don't break unless we found the one we want.
+ */
+ if (op_res)
+ break;
}
}
if (!op_res)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]