[evolution-data-server] Bug #624420 - Crash camel_imapx_server_append_message



commit ef6d34ab714bf2a744f74d49064f6af2c2dded0b
Author: Milan Crha <mcrha redhat com>
Date:   Fri Nov 26 09:12:11 2010 +0100

    Bug #624420 - Crash camel_imapx_server_append_message

 camel/providers/imapx/camel-imapx-server.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index e7c78e9..0f06dd3 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -5387,7 +5387,8 @@ camel_imapx_server_append_message (CamelIMAPXServer *is,
 	tmp = camel_data_cache_get_filename (ifolder->cache, "new", uid, NULL);
 	info = camel_folder_summary_info_new_from_message ((CamelFolderSummary *)folder->summary, message, NULL);
 	info->uid = camel_pstring_strdup (uid);
-	((CamelMessageInfoBase *) info)->flags = ((CamelMessageInfoBase *) mi)->flags;
+	if (mi)
+		((CamelMessageInfoBase *) info)->flags = ((CamelMessageInfoBase *) mi)->flags;
 	g_free (uid);
 
 	/* So, we actually just want to let the server loop that



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