summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorSuman Manjunath <msuman@novell.com>2007-08-13 06:31:56 +0000
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2007-08-13 06:31:56 +0000
commitc11f37d19550558a22e9b1c479cd59c13f34baf6 (patch)
treef873142e2cb8dd3fbfaa3494397af3310b780f13 /servers
parentcaaff2e8cfcc8d19c32aadf645c217d1ac279fb9 (diff)
downloadevolution-data-server-c11f37d19550558a22e9b1c479cd59c13f34baf6.tar.gz
** Fixes bug #465419
2007-08-10 Suman Manjunath <msuman@novell.com> ** Fixes bug #465419 * e-gw-item.c: (e_gw_item_append_to_soap_message): If message body is NULL, use 0 as string length. svn path=/trunk/; revision=7942
Diffstat (limited to 'servers')
-rw-r--r--servers/groupwise/ChangeLog7
-rw-r--r--servers/groupwise/e-gw-item.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/servers/groupwise/ChangeLog b/servers/groupwise/ChangeLog
index fd42e3ca4..49205ad03 100644
--- a/servers/groupwise/ChangeLog
+++ b/servers/groupwise/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-10 Suman Manjunath <msuman@novell.com>
+
+ ** Fixes bug #465419
+
+ * e-gw-item.c: (e_gw_item_append_to_soap_message):
+ If message body is NULL, use 0 as string length.
+
2007-08-10 Milan Crha <mcrha@redhat.com>
* e-gw-connection.c: (e_gw_connection_get_container_list):
diff --git a/servers/groupwise/e-gw-item.c b/servers/groupwise/e-gw-item.c
index 86f2833d8..e17f84d52 100644
--- a/servers/groupwise/e-gw-item.c
+++ b/servers/groupwise/e-gw-item.c
@@ -3187,7 +3187,7 @@ e_gw_item_append_to_soap_message (EGwItem *item, SoupSoapMessage *msg)
str = soup_base64_encode (priv->message, strlen (priv->message));
//str = g_strdup (priv->message);
- str_len = g_strdup_printf ("%d", (int)strlen (str));
+ str_len = g_strdup_printf ("%d", str ? (int)strlen (str) : 0);
soup_soap_message_start_element (msg, "part", NULL, NULL);
soup_soap_message_add_attribute (msg, "length", str_len, NULL, NULL);
soup_soap_message_add_attribute (msg, "contentType", priv->content_type, NULL, NULL);