[evolution-ews/gnome-3-4] Bug #673408 - Crash in get_attachments_response_cb()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews/gnome-3-4] Bug #673408 - Crash in get_attachments_response_cb()
- Date: Wed, 6 Jun 2012 17:37:17 +0000 (UTC)
commit 8a18e19ca577cd2c843f6cf23eaa26c5184c8b09
Author: Milan Crha <mcrha redhat com>
Date: Wed Jun 6 19:36:54 2012 +0200
Bug #673408 - Crash in get_attachments_response_cb()
src/server/e-ews-item.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/server/e-ews-item.c b/src/server/e-ews-item.c
index 698c5ba..fbf67ce 100644
--- a/src/server/e-ews-item.c
+++ b/src/server/e-ews-item.c
@@ -887,7 +887,7 @@ e_ews_item_set_from_soap_parameter (EEwsItem *item,
ESoapParameter *param)
{
EEwsItemPrivate *priv = item->priv;
- ESoapParameter *subparam, *node = NULL;
+ ESoapParameter *subparam, *node = NULL, *attach_id;
gboolean contact = FALSE, task = FALSE;
const gchar *name;
@@ -955,6 +955,13 @@ e_ews_item_set_from_soap_parameter (EEwsItem *item,
return FALSE;
}
+ attach_id = e_soap_parameter_get_first_child_by_name (param, "AttachmentId");
+ if (attach_id) {
+ priv->attachment_id = g_new0 (EwsId, 1);
+ priv->attachment_id->id = e_soap_parameter_get_property (attach_id, "Id");
+ priv->attachment_id->change_key = e_soap_parameter_get_property (attach_id, "ChangeKey");
+ }
+
if (!node)
node = param;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]