evolution-exchange r1877 - in branches/gnome-2-24: . mail



Author: mcrha
Date: Fri Feb 13 10:21:35 2009
New Revision: 1877
URL: http://svn.gnome.org/viewvc/evolution-exchange?rev=1877&view=rev

Log:
2009-02-13  Milan Crha  <mcrha redhat com>

	** Partial fix for bug #545455

	* mail-stub-exchange.c: (transfer_messages):
	Check for the correct href of the message before accessing it.



Modified:
   branches/gnome-2-24/ChangeLog
   branches/gnome-2-24/mail/mail-stub-exchange.c

Modified: branches/gnome-2-24/mail/mail-stub-exchange.c
==============================================================================
--- branches/gnome-2-24/mail/mail-stub-exchange.c	(original)
+++ branches/gnome-2-24/mail/mail-stub-exchange.c	Fri Feb 13 10:21:35 2009
@@ -2641,6 +2641,11 @@
 		if (!mmsg)
 			continue;
 
+		if (!mmsg->href || !strrchr (mmsg->href, '/')) {
+			g_warning ("%s: Message '%s' with invalid href '%s'", G_STRFUNC, (char *)uids->pdata[i], mmsg->href ? mmsg->href : "NULL");
+			continue;
+		}
+
 		g_hash_table_insert (order, mmsg, GINT_TO_POINTER (i));
 		g_ptr_array_add (hrefs, strrchr (mmsg->href, '/') + 1);
 		g_ptr_array_add (new_uids, "");



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