evolution-data-server r9815 - branches/gnome-2-24/camel/providers/groupwise
- From: psankar svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9815 - branches/gnome-2-24/camel/providers/groupwise
- Date: Mon, 8 Dec 2008 11:09:42 +0000 (UTC)
Author: psankar
Date: Mon Dec 8 11:09:42 2008
New Revision: 9815
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9815&view=rev
Log:
2008-12-08 Sankar P <psankar novell com>
* camel-groupwise-folder.c (gw_update_cache):
Avoid invalid reads by validating optional fields
Modified:
branches/gnome-2-24/camel/providers/groupwise/ChangeLog
branches/gnome-2-24/camel/providers/groupwise/camel-groupwise-folder.c
Modified: branches/gnome-2-24/camel/providers/groupwise/camel-groupwise-folder.c
==============================================================================
--- branches/gnome-2-24/camel/providers/groupwise/camel-groupwise-folder.c (original)
+++ branches/gnome-2-24/camel/providers/groupwise/camel-groupwise-folder.c Mon Dec 8 11:09:42 2008
@@ -1446,8 +1446,12 @@
time_t time;
time_t actual_time;
temp_date = e_gw_item_get_creation_date (item);
- time = e_gw_connection_get_date_from_string (temp_date);
- actual_time = camel_header_decode_date (ctime(&time), NULL);
+ if (temp_date) {
+ /* Creation date can be returned as null for auto-generated meetings */
+ time = e_gw_connection_get_date_from_string (temp_date);
+ actual_time = camel_header_decode_date (ctime(&time), NULL);
+ } else
+ actual_time = (time_t) 0;
mi->info.date_sent = mi->info.date_received = actual_time;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]