summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParthasarathi Susarla <sparthasarathi@novell.com>2005-11-07 09:13:12 +0000
committerParthasarathi Susarla <saps@src.gnome.org>2005-11-07 09:13:12 +0000
commit17eaaae0e6d996fe4f8bc00bfdb0fb864c8b32f2 (patch)
tree84586c2247d7b286461655773eda81adea212c1d
parentb04092104ff146c23595192a161a6ef9621e1171 (diff)
downloadevolution-data-server-17eaaae0e6d996fe4f8bc00bfdb0fb864c8b32f2.tar.gz
** See bug #320736 Check if the attachment is indeed a valid string.
2005-11-07 Parthasarathi Susarla <sparthasarathi@novell.com> ** See bug #320736 * camel-groupwise-folder.c: (groupwise_folder_item_to_msg): Check if the attachment is indeed a valid string. Prevents a crash.
-rw-r--r--camel/providers/groupwise/ChangeLog7
-rw-r--r--camel/providers/groupwise/camel-groupwise-folder.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/camel/providers/groupwise/ChangeLog b/camel/providers/groupwise/ChangeLog
index 07d3b16a6..5c5261ece 100644
--- a/camel/providers/groupwise/ChangeLog
+++ b/camel/providers/groupwise/ChangeLog
@@ -1,3 +1,10 @@
+2005-11-07 Parthasarathi Susarla <sparthasarathi@novell.com>
+
+ ** See bug #320736
+ * camel-groupwise-folder.c: (groupwise_folder_item_to_msg):
+ Check if the attachment is indeed a valid string. Prevents
+ a crash.
+
2005-10-19 Vivek Jain <jvivek@novell.com>
**See bug #319045
diff --git a/camel/providers/groupwise/camel-groupwise-folder.c b/camel/providers/groupwise/camel-groupwise-folder.c
index 429103eeb..30d7d913c 100644
--- a/camel/providers/groupwise/camel-groupwise-folder.c
+++ b/camel/providers/groupwise/camel-groupwise-folder.c
@@ -1389,7 +1389,7 @@ groupwise_folder_item_to_msg( CamelFolder *folder,
camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_INVALID, _("Could not get message"));
return NULL;
}
- if (attachment && (len !=0) ) {
+ if (attachment && attachment[0] && (len !=0) ) {
if (!g_ascii_strcasecmp (attach->name, "TEXT.htm")) {
body = g_strdup (attachment);
g_free (attachment);