[evolution-mapi] Bug #606338 - Do not dereference NULL pointer in mapi_append_message



commit 4f80de2f1c56387f7f941e8f4b001322e0824716
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jan 7 19:33:01 2010 +0100

    Bug #606338 - Do not dereference NULL pointer in mapi_append_message

 src/camel/camel-mapi-folder.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index cd6b8b4..d57e855 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -2052,7 +2052,8 @@ mapi_append_message (CamelFolder *folder, CamelMimeMessage *message,
 					 item->recipients, item->attachments,
 					 item->generic_streams, 0);
 
-	*appended_uid = exchange_mapi_util_mapi_ids_to_uid(fid, mid);
+	if (appended_uid)
+		*appended_uid = exchange_mapi_util_mapi_ids_to_uid(fid, mid);
 }
 
 static void



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